From 0700d66d7012e0fe9c5eba06aaa911f5c5cfc39f Mon Sep 17 00:00:00 2001 From: quad Date: Fri, 11 Mar 2016 16:44:45 +0100 Subject: [PATCH] Edit cleaner so that the messages work better. --- run.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/run.py b/run.py index 5ce28ee..42bd676 100755 --- a/run.py +++ b/run.py @@ -30,8 +30,6 @@ log.setLevel(logging.ERROR) def cleaner_thread(): - print_log('Notice', 'Cleaner started') - # Call itself again after the interval cleaner = Timer(config["CLEAN_INTERVAL"], cleaner_thread) cleaner.daemon = True # Daemons will attempt to exit cleanly along with the main process, which we want @@ -42,6 +40,7 @@ def cleaner_thread(): def delete_old(): + print_log('Notice', 'Cleaner running') targetTime = time.time() - config["TIME"] old = db.get_old_files(targetTime) for file in old: