projects
/
tools
/
git-buildpackage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab5a708
)
log: add error and warning aliases
author
Guido Günther
<agx@sigxcpu.org>
Wed, 6 Nov 2013 20:08:14 +0000
(21:08 +0100)
committer
Guido Günther
<agx@sigxcpu.org>
Wed, 6 Nov 2013 20:08:14 +0000
(21:08 +0100)
since I tend to use them instead of err and warn.
Closes: #728896
gbp/log.py
patch
|
blob
|
history
diff --git
a/gbp/log.py
b/gbp/log.py
index 82d8bf10502fc54b2081e5dbbeb1d495a9c9694d..f21e2bbd507b958f58c4cd7de4a7b6834f8b0294 100644
(file)
--- 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)