Don't remove invocation from the result in the log callback

Fixes #2064.
parent 85fb8494
......@@ -31,6 +31,7 @@ def log(host, category, data):
# avoid logging extraneous data from facts
data = 'omitted'
else:
data = data.copy()
invocation = data.pop('invocation', None)
data = json.dumps(data)
if invocation is not None:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment