Skip to content

Commit

Permalink
Add some debug log statements
Browse files Browse the repository at this point in the history
  • Loading branch information
dwoz committed Jan 21, 2025
1 parent 1d677bc commit 5e98354
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion salt/minion.py
Original file line number Diff line number Diff line change
Expand Up @@ -2883,13 +2883,21 @@ def handle_event(self, package):
self._mine_send(tag, data)
elif tag.startswith("fire_master"):
if self.connected:
log.debug("Forwarding master event tag=%s", data["tag"])
log.debug(
"Forwarding event %s to master %s",
data["tag"],
self.opts["master"],
)
yield self._fire_master_main(
data["data"],
data["tag"],
data["events"],
data["pretag"],
)
else:
log.debug(
"Master %s is not connected, dropping event %s", self.opts["master"], data["tag"]
)
elif tag.startswith(master_event(type="disconnected")) or tag.startswith(
master_event(type="failback")
):
Expand Down

0 comments on commit 5e98354

Please sign in to comment.