Small logging enhancements. (0.30.2)

This commit is contained in:
Johannes Findeisen 2023-10-01 10:23:31 +02:00
commit 5c49cd626e
3 changed files with 3 additions and 3 deletions

View file

@ -23,7 +23,7 @@ from linspector.monitors import Monitors
__author__ = 'Johannes Findeisen'
__author_email__ = 'you@hanez.org'
__description__ = 'linspector is a infrastructure and system monitoring daemon and toolchain.'
__version__ = '0.30.1'
__version__ = '0.30.2'
sys.stderr = open('/dev/null', 'w')

View file

@ -27,7 +27,7 @@ class PortService(Service):
error = str(err)
status = 'ERROR'
self._log.error(self.get_str(identifier, monitor.get_host(), service, status))
self._log.error(error)
self._log.error('identifier=' + identifier + ' error=' + error)
return {'error': error.replace('\'', ''),
'host': monitor.get_host(),

View file

@ -32,7 +32,7 @@ class IsConnectedService(Service):
error = str(err)
status = 'ERROR'
self._log.error(self.get_str(identifier, monitor.get_host(), service, status))
self._log.error(error)
self._log.error('identifier=' + identifier + ' error=' + error)
return {'error': error.replace('\'', ''),
'host': monitor.get_host(),