Merge "Log the name of the command in execute()"

This commit is contained in:
Zuul 2021-02-23 11:42:40 +00:00 committed by Gerrit Code Review
commit d6383a56e9

View File

@ -44,7 +44,8 @@ class BaseCommand(api.Command):
except Exception:
if log_errors:
ignoring = "" if check_error else ": IGNORING"
LOG.exception("Error executing command%s", ignoring)
LOG.exception("Error executing command (%s)%s",
type(self).__name__, ignoring)
if check_error:
raise