| |
@@ -396,14 +396,13 @@
|
| |
# copr specific semantics
|
| |
record.who = self.who
|
| |
|
| |
+ # For the message arguments, it is better to expand them right now
|
| |
+ # instead of relying on method in json.dumps(..., default=default)
|
| |
+ # and even worse rely on it's reverse action in RedisLogHandler.
|
| |
+ record.msg = record.msg % record.args
|
| |
if record.exc_info:
|
| |
_, error, tb = record.exc_info
|
| |
- record.msg = format_tb(error, tb)
|
| |
- else:
|
| |
- # For the message arguments, it is better to expand them right now
|
| |
- # instead of relying on method in json.dumps(..., default=default)
|
| |
- # and even worse rely on it's reverse action in RedisLogHandler.
|
| |
- record.msg = record.msg % record.args
|
| |
+ record.msg += "\n" + format_tb(error, tb)
|
| |
|
| |
# cleanup the hard to json.dumps() stuff
|
| |
record.exc_info = None
|
| |
Previously, we expected that Builder.check_build_success() raised
BuilderError in case of error, but this never happened - we instead
raised RemoteCmdError which was never catched.
Instead of cathing RemoteCmdError, execute
conn.run()
directly; it isboth faster (we ignore stdout/stderr) and both we can avoid the
exception handling mesh in every call.
The only exception which could be raised there is SSHConnectionError,
which is carefully catched in worker.py.
Relates: #987