diff --git a/bin/linspector b/bin/linspector index 2a20a1c..8d4c05e 100755 --- a/bin/linspector +++ b/bin/linspector @@ -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 ' diff --git a/linspector/environment.py b/linspector/environment.py index eee61fe..3f1d945 100644 --- a/linspector/environment.py +++ b/linspector/environment.py @@ -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