Skip to content

Commit

Permalink
Remove field "data" from msg format in plugin log_plays_adjusted
Browse files Browse the repository at this point in the history
It's too much debug for now, the only useful info was "changed": true/false.
  • Loading branch information
LegenJCdary committed Oct 1, 2024
1 parent 7a1346d commit faf35d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/plugins/log_plays_adjusted.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class CallbackModule(CallbackBase):
CALLBACK_NEEDS_WHITELIST = True

TIME_FORMAT = "%b %d %Y %H:%M:%S"
MSG_FORMAT = "%(now)s - %(playbook)s - %(task_name)s - %(category)s\n%(data)s\n\n"
MSG_FORMAT = "%(now)s - %(host)s - %(playbook)s - %(task_name)s - %(category)s\n\n"

def __init__(self):

Expand Down Expand Up @@ -62,6 +62,7 @@ def log(self, result, category):
self.MSG_FORMAT
% {
"now": now,
"host": result._host.name,
"playbook": self.playbook,
"task_name": result._task.name,
"category": category,
Expand Down

0 comments on commit faf35d3

Please sign in to comment.