Small logging enhancements. (0.30.2)
This commit is contained in:
parent
6e539824ee
commit
5c49cd626e
3 changed files with 3 additions and 3 deletions
|
|
@ -23,7 +23,7 @@ from linspector.monitors import Monitors
|
||||||
__author__ = 'Johannes Findeisen'
|
__author__ = 'Johannes Findeisen'
|
||||||
__author_email__ = 'you@hanez.org'
|
__author_email__ = 'you@hanez.org'
|
||||||
__description__ = 'linspector is a infrastructure and system monitoring daemon and toolchain.'
|
__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')
|
sys.stderr = open('/dev/null', 'w')
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ class PortService(Service):
|
||||||
error = str(err)
|
error = str(err)
|
||||||
status = 'ERROR'
|
status = 'ERROR'
|
||||||
self._log.error(self.get_str(identifier, monitor.get_host(), service, status))
|
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('\'', ''),
|
return {'error': error.replace('\'', ''),
|
||||||
'host': monitor.get_host(),
|
'host': monitor.get_host(),
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ class IsConnectedService(Service):
|
||||||
error = str(err)
|
error = str(err)
|
||||||
status = 'ERROR'
|
status = 'ERROR'
|
||||||
self._log.error(self.get_str(identifier, monitor.get_host(), service, status))
|
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('\'', ''),
|
return {'error': error.replace('\'', ''),
|
||||||
'host': monitor.get_host(),
|
'host': monitor.get_host(),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue