Skip to content

Commit

Permalink
doc: log the watched folder in the README (#995)
Browse files Browse the repository at this point in the history
Related to #994.
  • Loading branch information
abcdenis committed Jul 28, 2023
1 parent 48c49a1 commit 75a3289
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.rst
Expand Up @@ -27,6 +27,7 @@ as command-line arguments and logs events generated:
format='%(asctime)s - %(message)s',
datefmt='%Y-%m-%d %H:%M:%S')
path = sys.argv[1] if len(sys.argv) > 1 else '.'
logging.info(f'start watching directory {path!r}')
event_handler = LoggingEventHandler()
observer = Observer()
observer.schedule(event_handler, path, recursive=True)
Expand Down

0 comments on commit 75a3289

Please sign in to comment.