Fixed a logging error in environment and some typo fixes in a log message. (0.21.9)
This commit is contained in:
parent
dbbe706961
commit
61184b86ab
2 changed files with 7 additions and 6 deletions
|
|
@ -18,7 +18,7 @@ from linspector.environment import Environment
|
|||
from linspector.linspector import Linspector
|
||||
from linspector.monitors import Monitors
|
||||
|
||||
__version__ = '0.21.8'
|
||||
__version__ = '0.21.9'
|
||||
__author__ = 'Johannes Findeisen <you@hanez.org>'
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -19,13 +19,13 @@ class Environment:
|
|||
if key in self.__env:
|
||||
return self.__env[key]
|
||||
else:
|
||||
self.__log.warning('environment var "' + key + '" not found! could be that it is '
|
||||
'set later at runtime. if you '
|
||||
self.__log.warning('Environment var "' + key + '" not found! Could be that it is '
|
||||
'set later at runtime. If you '
|
||||
'encounter any errors executing '
|
||||
'linspector, something is wrong '
|
||||
'in the logic of the code. please '
|
||||
'in the logic of the code. Please '
|
||||
'consider reporting this as a '
|
||||
'bug! btw. WARNING is not an '
|
||||
'bug! Btw. a WARNING is not an '
|
||||
'ERROR! Linspector should work '
|
||||
'even with missing environment '
|
||||
'variables.')
|
||||
|
|
@ -33,6 +33,7 @@ class Environment:
|
|||
|
||||
def set_env_var(self, key, value):
|
||||
if self.__env[key]:
|
||||
log('warning', __name__, 'environment var "' + key + ' existed and was overwritten!')
|
||||
self.__log('warning', __name__, 'environment var "' + key +
|
||||
' existed and was overwritten!')
|
||||
|
||||
self.__env[key] = value
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue