qubespolicy: improve logging

Include actual target to which service was allowed (either overriden by
policy, or chosen by user).

QubesOS/qubes-issues#910
This commit is contained in:
Marek Marczykowski-Górecki 2017-05-17 14:25:54 +02:00
parent 1831088c9b
commit 58e58e0ca7
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

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