From 58e58e0ca76c7f1632b16f098c7196d95757ca30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Wed, 17 May 2017 14:25:54 +0200 Subject: [PATCH] qubespolicy: improve logging Include actual target to which service was allowed (either overriden by policy, or chosen by user). QubesOS/qubes-issues#910 --- qubespolicy/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qubespolicy/cli.py b/qubespolicy/cli.py index 4a3c9ef4..0b173df0 100644 --- a/qubespolicy/cli.py +++ b/qubespolicy/cli.py @@ -90,7 +90,7 @@ def main(args=None): action.handle_user_response(True, response) else: action.handle_user_response(False) - log.info(log_prefix + 'allowed') + log.info(log_prefix + 'allowed to {}'.format(action.target)) action.execute(caller_ident) except qubespolicy.PolicySyntaxError as e: log.error(log_prefix + 'error loading policy: ' + str(e))