diff options
author | Guido Günther <agx@sigxcpu.org> | 2013-11-06 21:08:14 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2013-11-06 21:08:14 +0100 |
commit | 2042144aeae6ef84b2f6c6b595f8549e5132c555 (patch) | |
tree | 50833412327d5112554914db78f4a73c51a6a358 /gbp/log.py | |
parent | ab5a7086cd55f0a924ee7644a42eeab159753151 (diff) | |
download | git-buildpackage-2042144aeae6ef84b2f6c6b595f8549e5132c555.tar.gz git-buildpackage-2042144aeae6ef84b2f6c6b595f8549e5132c555.tar.bz2 git-buildpackage-2042144aeae6ef84b2f6c6b595f8549e5132c555.zip |
log: add error and warning aliases
since I tend to use them instead of err and warn.
Closes: #728896
Diffstat (limited to 'gbp/log.py')
-rw-r--r-- | gbp/log.py | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -124,10 +124,16 @@ def err(msg): """Logs a message with level ERROR on the GBP logger""" LOGGER.error(msg) +def error(msg): + err(msg) + def warn(msg): """Logs a message with level WARNING on the GBP logger""" LOGGER.warning(msg) +def warning(msg): + warn(msg) + def info(msg): """Logs a message with level INFO on the GBP logger""" LOGGER.info(msg) |