diff --git a/plugin_test/boswatch.py b/plugin_test/boswatch.py index 944c13e..7ea591d 100644 --- a/plugin_test/boswatch.py +++ b/plugin_test/boswatch.py @@ -23,7 +23,7 @@ import time #timestamp for doublealarm logger = logging.getLogger() logger.setLevel(logging.DEBUG) #set log string format -formatter = logging.Formatter('%(asctime)s - %(module)s [%(levelname)s] %(message)s', '%d.%m.%Y %I:%M:%S') +formatter = logging.Formatter('%(asctime)s - %(module)s [%(levelname)s] %(message)s', '%d.%m.%Y %H:%M:%S') #create a file logger fh = logging.FileHandler('log/boswatch.log', 'w') fh.setLevel(logging.DEBUG) #log level >= Debug diff --git a/plugin_test/plugin_test.py b/plugin_test/plugin_test.py index 4fb0229..0d34f14 100755 --- a/plugin_test/plugin_test.py +++ b/plugin_test/plugin_test.py @@ -15,7 +15,7 @@ logger = logging.getLogger() logger.setLevel(logging.DEBUG) #set log string format -formatter = logging.Formatter('%(asctime)s - %(module)s [%(levelname)s] %(message)s', '%d.%m.%Y %I:%M:%S') +formatter = logging.Formatter('%(asctime)s - %(module)s [%(levelname)s] %(message)s', '%d.%m.%Y %H:%M:%S') #create a file loger fh = logging.FileHandler('boswatch.log', 'w')