Revision 2476
Added by Aaron Marcuse-Kubitza over 12 years ago
map | ||
---|---|---|
114 | 114 |
'''Higher level -> more verbose''' |
115 | 115 |
if level <= verbosity: |
116 | 116 |
if level > 1: msg = '['+str(level)+'] '+msg # include level in msg |
117 |
sys.stderr.write(msg+'\n') |
|
117 |
sys.stderr.write(msg.rstrip()+'\n')
|
|
118 | 118 |
if debug: log_debug = lambda msg, level=2: log(msg, level) |
119 | 119 |
else: log_debug = sql.log_debug_none |
120 | 120 |
|
Also available in: Unified diff
bin/map: Logging: log(): Strip trailing newlines from msg