mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2025-12-06 07:42:03 +01:00
Merge branch 'develop' of https://github.com/Schrolli91/BOSWatch into develop
This commit is contained in:
commit
22db39efcf
|
|
@ -127,7 +127,7 @@ try:
|
|||
for key,val in globals.config.items("BOSWatch"):
|
||||
logging.debug(" - %s = %s", key, val)
|
||||
except:
|
||||
logging.debug("cannot read config file")
|
||||
logging.exception("cannot read config file")
|
||||
else:
|
||||
|
||||
#load plugins
|
||||
|
|
|
|||
|
|
@ -5,15 +5,15 @@
|
|||
# Use this as a simple Plugin Loading Tool to test your own Coded Plugins #
|
||||
###########################################################################
|
||||
|
||||
import globals # Global variables
|
||||
import pluginloader
|
||||
|
||||
import logging
|
||||
|
||||
import ConfigParser #for parse the config file
|
||||
import os #for log mkdir
|
||||
import time #timestamp for doublealarm
|
||||
|
||||
from includes import globals # Global variables
|
||||
from includes import pluginloader
|
||||
|
||||
#create new logger
|
||||
logger = logging.getLogger()
|
||||
logger.setLevel(logging.DEBUG)
|
||||
|
|
@ -46,7 +46,7 @@ try:
|
|||
for key,val in globals.config.items("Plugins"):
|
||||
logging.debug(" - %s = %s", key, val)
|
||||
except:
|
||||
logging.debug("cannot read config file")
|
||||
logging.exception("cannot read config file")
|
||||
|
||||
|
||||
try:
|
||||
|
|
@ -86,4 +86,4 @@ while True:
|
|||
exit()
|
||||
except:
|
||||
logging.exception("unknown error")
|
||||
exit()
|
||||
exit()
|
||||
|
|
|
|||
|
|
@ -66,6 +66,10 @@ def run(typ,freq,data):
|
|||
logging.exception("no HTTP request been sended")
|
||||
except: #otherwise
|
||||
logging.exception("cannot get HTTP response")
|
||||
|
||||
finally:
|
||||
logging.debug("close http-Connection")
|
||||
httprequest.close()
|
||||
########## User Plugin CODE ##########
|
||||
|
||||
except:
|
||||
|
|
|
|||
Loading…
Reference in a new issue