added one second delay to background service

This commit is contained in:
Nathaniel Kenschaft 2020-06-16 21:15:22 -04:00
parent 17ffaba4af
commit c8887e1f65

View File

@ -137,6 +137,7 @@ def watch_dir(watched_dir="/tmp", log_dir="/tmp/skooloslogs"):
NOTIFIER.start() NOTIFIER.start()
sys.stdout = open("/dev/null", 'w') sys.stdout = open("/dev/null", 'w')
wm.add_watch(watched_dir, mask, rec=True) wm.add_watch(watched_dir, mask, rec=True)
time.sleep(1)
sys.stdout = logfile sys.stdout = logfile
print("Start time: " + print("Start time: " +
time.strftime("%A, %B %d, %Y %H:%M:%S", time.localtime()) + "\n") time.strftime("%A, %B %d, %Y %H:%M:%S", time.localtime()) + "\n")