Revision 2454
Added by Aaron Marcuse-Kubitza over 12 years ago
bin/map | ||
---|---|---|
80 | 80 |
if end != None: end += start |
81 | 81 |
|
82 | 82 |
# Debugging |
83 |
verbosity = util.cast(float, opts.get_env_var('verbose', 0, env_names)) |
|
84 |
verbose_errors = opts.env_flag('verbose_errors', test or debug, env_names) |
|
83 |
if test: default_verbosity = 1 |
|
84 |
else: default_verbosity = 0 |
|
85 |
verbosity = util.cast(float, opts.get_env_var('verbose', default_verbosity, |
|
86 |
env_names)) |
|
85 | 87 |
if opts.env_flag('debug', False, env_names): verbosity = max(verbosity, 2) |
86 | 88 |
opts.get_env_var('profile_to', None, env_names) # add to env_names |
87 | 89 |
|
... | ... | |
107 | 109 |
## |
108 | 110 |
|
109 | 111 |
# Logging |
112 |
verbose_errors = verbosity >= 1 |
|
110 | 113 |
debug = verbosity > 1 |
111 | 114 |
def log(msg, level=1): |
112 | 115 |
'''Higher level -> more verbose''' |
Also available in: Unified diff
bin/map: Fixed bug where verbose_errors' default value depended on debug var, which was not yet set. Removed verbose_errors param and instead turn verbose_errors on whenever verbosity >= 1. Verbosity defaults to 1 in test mode.