Skip to content

Commit

Permalink
Removed logging code, added Slovenia.cup/dat to .gtignore
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank Paynter authored and Frank Paynter committed Jan 4, 2025
1 parent 93a5170 commit cb17de5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ jobs
bin/shptree
bin/gdalwarp
bin/ogr2ogr
Slovenia3.cup
Slovenia3.dat

8 changes: 0 additions & 8 deletions lib/xcsoar/mapgen/server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,6 @@
from xcsoar.mapgen.georect import GeoRect
from xcsoar.mapgen.waypoints.parser import parse_waypoint_file

cherrypy.config.update(
{
"log.screen": True, # Log to stdout
"log.error_file": "error.log", # Log errors to a file
"log.access_file": "access.log", # Log access to a file
}
)


class Server(object):
def __init__(self, dir_jobs):
Expand Down
3 changes: 0 additions & 3 deletions lib/xcsoar/mapgen/waypoints/list.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-
from xcsoar.mapgen.waypoints.waypoint import Waypoint
from xcsoar.mapgen.georect import GeoRect
import cherrypy


class WaypointList:
Expand Down Expand Up @@ -34,13 +33,11 @@ def extend(self, wp_list):
def get_bounds(self, offset_distance=15.0):
rc = GeoRect(180, -180, -90, 90)
for wp in self.__list:
# cherrypy.log(f'In list.py: {wp.name}, lat: {wp.lat:.3f}, lon: {wp.lon:.3f}')
rc.left = min(rc.left, wp.lon)
rc.right = max(rc.right, wp.lon)
rc.top = max(rc.top, wp.lat)
rc.bottom = min(rc.bottom, wp.lat)

rc.expand(offset_distance)
# cherrypy.log(f'In list.py - final rc: left {rc.left:.3f}, right: {rc.right:.3f}, top: {rc.top:.3f}, bot {rc.bottom:.3f}')

return rc

0 comments on commit cb17de5

Please sign in to comment.