better logging in many places
This commit is contained in:
parent
c754f046ee
commit
c890ae6bbf
8 changed files with 74 additions and 16 deletions
|
@ -1,3 +1,4 @@
|
|||
import logging
|
||||
from itertools import chain, combinations
|
||||
from operator import attrgetter, itemgetter
|
||||
|
||||
|
@ -483,5 +484,6 @@ class AltitudeArea(LevelGeometryMixin, models.Model):
|
|||
num_created += 1
|
||||
areas[tmpid].save()
|
||||
|
||||
print(_('%d altitude areas built.') % len(areas))
|
||||
print(_('%d modified, %d deleted, %d created.') % (num_modified, num_deleted, num_created))
|
||||
logger = logging.getLogger('c3nav')
|
||||
logger.info(_('%d altitude areas built.') % len(areas))
|
||||
logger.info(_('%d modified, %d deleted, %d created.') % (num_modified, num_deleted, num_created))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue