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
父節點 fbdf460db8
當前提交 890df9ba03
沒有發現已知的金鑰在資料庫的簽署中
GPG 金鑰 ID: 063938BA42CFA724

查看文件

@ -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))