Skip to content

Commit

Permalink
Log config events
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxdaemon committed May 8, 2024
1 parent 00db07d commit 24cc883
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cloudbot/reloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,5 @@ def on_moved(self, event):

class ConfigEventHandler(ReloadHandler):
def on_any_event(self, event):
self.bot.logger.info("Config event: %s", event)
self.loader.reload(getattr(event, "dest_path", event.src_path))

0 comments on commit 24cc883

Please sign in to comment.