Make a logging with error level meaningful

This commit is contained in:
Vgr E. Barry 2018-01-10 14:14:49 -05:00
parent a2be87b85a
commit 270a356e76

View File

@ -53,7 +53,7 @@ def get_timestamp(use_utc=None, ts_format=None):
def stream(output, level="normal"):
if botconfig.VERBOSE_MODE or botconfig.DEBUG_MODE:
plog(output)
elif level == "warning":
elif level in ("warning", "error"):
plog(output)