From 859085137f09430b0869203905617de51971ff69 Mon Sep 17 00:00:00 2001 From: Florian Rupp Date: Fri, 21 Apr 2023 18:35:06 +0200 Subject: [PATCH] better info in stdout --- prometheus-ssh-exporter.py | 1 + 1 file changed, 1 insertion(+) diff --git a/prometheus-ssh-exporter.py b/prometheus-ssh-exporter.py index d943a15..8fd1d0b 100644 --- a/prometheus-ssh-exporter.py +++ b/prometheus-ssh-exporter.py @@ -146,6 +146,7 @@ if __name__ == '__main__': This is used to immediately look for changes in the SSH sessions when a new session is opened or closed to prevent missing any sessions that lasted less than the FETCH_INTERVAL. """ + print("Watching file {} for changes...".format(WATCHFILE)) event_handler = FileOpenedHandler() observer = Observer() observer.schedule(event_handler, path=WATCHFILE, recursive=False)