qubespolicy: ease testing by calling str(target) only once

Don't call it multiple times depending on number of registered loggers.
This commit is contained in:
Marek Marczykowski-Górecki 2018-09-01 19:05:31 +02:00
parent fbdf460db8
commit 890df9ba03
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -130,7 +130,7 @@ def main(args=None):
action.handle_user_response(True, response)
else:
action.handle_user_response(False)
log.info('%s allowed to %s', log_prefix, action.target)
log.info('%s allowed to %s', log_prefix, str(action.target))
action.execute(caller_ident)
except qubespolicy.PolicySyntaxError as e:
log.error('%s error loading policy: %s', log_prefix, str(e))