summaryrefslogtreecommitdiff
path: root/gbp/log.py
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2013-11-06 21:08:14 +0100
committerGuido Günther <agx@sigxcpu.org>2013-11-06 21:08:14 +0100
commit2042144aeae6ef84b2f6c6b595f8549e5132c555 (patch)
tree50833412327d5112554914db78f4a73c51a6a358 /gbp/log.py
parentab5a7086cd55f0a924ee7644a42eeab159753151 (diff)
downloadgit-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.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/gbp/log.py b/gbp/log.py
index 82d8bf10..f21e2bbd 100644
--- a/gbp/log.py
+++ b/gbp/log.py
@@ -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)