From 890df9ba033c6d374d2973ead050a3710e9355d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sat, 1 Sep 2018 19:05:31 +0200 Subject: [PATCH] qubespolicy: ease testing by calling str(target) only once Don't call it multiple times depending on number of registered loggers. --- qubespolicy/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qubespolicy/cli.py b/qubespolicy/cli.py index 4b6887eb..0be0a4e7 100644 --- a/qubespolicy/cli.py +++ b/qubespolicy/cli.py @@ -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))