Added some debugging

This commit is contained in:
2022-09-23 11:59:57 +10:00
parent 1205dddc9e
commit ed85763ff5

View File

@@ -178,6 +178,10 @@ class Handler(watchdog.events.PatternMatchingEventHandler):
path.replace(destination) path.replace(destination)
logging.info("Processing successfully finished for {}".format(event.src_path)) logging.info("Processing successfully finished for {}".format(event.src_path))
def on_created(self, event):
logging.info('{} on {}'.format(event.event_type, event.src_path))
if __name__ == "__main__": if __name__ == "__main__":
event_handler = Handler() event_handler = Handler()