print debug and error messages to stderr
Fixes: https://pagure.io/koji/issue/671
This commit is contained in:
parent
04af97063e
commit
1b07d95ccf
2 changed files with 4 additions and 4 deletions
2
cli/koji
2
cli/koji
|
|
@ -318,7 +318,7 @@ if __name__ == "__main__":
|
|||
else:
|
||||
exctype, value = sys.exc_info()[:2]
|
||||
rv = 1
|
||||
print("%s: %s" % (exctype.__name__, value))
|
||||
logger.error("%s: %s" % (exctype.__name__, value))
|
||||
try:
|
||||
session.logout()
|
||||
except:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue