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:
parent
fbdf460db8
commit
890df9ba03
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user