Skip to content

Commit

Permalink
Cleaned up logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
onyxfish committed May 8, 2010
1 parent 074f2c7 commit 8765505
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions safecity/apps/locate/management/commands/load_centerline.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def handle_noargs(self, **options):
for k, v in self.paths.items():
# Remaing lines that can't be merged have a fork, divided road, or other anomaly
if len(v) > 1 and type(v.merged) == MultiLineString:
print 'Unable to merge block segments: %s %s' % k
log.warn('Unable to merge block segments: %s %s' % k)

log.info('Finished.')

Expand Down Expand Up @@ -192,10 +192,8 @@ def create_block_for_feature(self, feature, road):
location = fromstr(self.estimate_point_along_linestring(path, 0.50), srid=9102671)
block.location = location
block.save()
#print 'Merge success: %s %s' % (block_number, road)
else:
# Discontinous segments could not be merged, assume there are more to come.
#print 'Merge fail: %s %s' % (block_number, road)
return
except Block.DoesNotExist:
# Get center-point of segment
Expand Down

0 comments on commit 8765505

Please sign in to comment.