Just playing around with logging... ;)
This commit is contained in:
parent
e693a6fce2
commit
665b70ed7d
3 changed files with 16 additions and 5 deletions
|
|
@ -32,7 +32,7 @@ from linspector.core.environment import Environment
|
|||
from linspector.core.linspector import Linspector
|
||||
from linspector.core.monitors import Monitors
|
||||
|
||||
__version__ = '0.19'
|
||||
__version__ = '0.19.1'
|
||||
__author__ = 'Johannes Findeisen <you@hanez.org>'
|
||||
|
||||
logger = logging.getLogger('linspector')
|
||||
|
|
|
|||
|
|
@ -27,12 +27,12 @@ class Monitors:
|
|||
self.__monitors = {}
|
||||
|
||||
monitor_groups = os.listdir(self.__configuration.get_configuration_path() + '/monitors/')
|
||||
#print(__file__ + ' (47): ' + str(monitor_groups))
|
||||
logger.debug('[' + __name__ + '] monitor groups: ' + str(monitor_groups))
|
||||
monitor_configuration = configparser.ConfigParser()
|
||||
for monitor_group in monitor_groups:
|
||||
monitors_file_list = glob.glob(self.__configuration.get_configuration_path() +
|
||||
'/monitors/' + monitor_group + '/*.conf')
|
||||
|
||||
logger.debug('[' + __name__ + '] monitor files: ' + str(monitors_file_list))
|
||||
for monitor_file in monitors_file_list:
|
||||
monitor_configuration.read(monitor_file, 'utf-8')
|
||||
|
||||
|
|
|
|||
|
|
@ -1,2 +1,13 @@
|
|||
CherryPy~=18.8.0 # used by httpserver plugin
|
||||
requests~=2.28.1 # used by speedtest service
|
||||
six~=1.16.0 # used by apscheduler (required)
|
||||
pytz~=2022.1 # used by apscheduler (required)
|
||||
tzlocal~=2.1 # used by apscheduler (required)
|
||||
tornado~=6.2 # used by apscheduler (optional)
|
||||
redis~=4.3.4 # used by apscheduler (optional)
|
||||
SQLAlchemy~=1.4.40 # used by apscheduler (optional)
|
||||
PyQt5~=5.15.7 # used by apscheduler (optional)
|
||||
Twisted~=22.8.0 # used by apscheduler (optional)
|
||||
CherryPy~=18.8.0 # used by the httpserver plugin (optional)
|
||||
requests~=2.28.1 # used by the net.speedtest service (optional)
|
||||
paramiko~=2.11.0 # used by the net.ssh service (optional)
|
||||
fritzconnection~=1.9.1 # used by the net.firzboxuplink service (optional)
|
||||
pysnmp~=4.4.12 # used by the snmp.get service (optional)
|
||||
Loading…
Add table
Add a link
Reference in a new issue