Added env variable to logger message
This commit is contained in:
parent
227d3a20a5
commit
8029f05824
1 changed files with 2 additions and 1 deletions
|
@ -37,7 +37,8 @@ def int_env(val, default_value=0):
|
||||||
try:
|
try:
|
||||||
return_value = int(os.environ.get(val))
|
return_value = int(os.environ.get(val))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error(str(e))
|
logger.error("Encountered exception trying to get env value for {}\nException details: {}".format(
|
||||||
|
val, str(e)))
|
||||||
|
|
||||||
return return_value
|
return return_value
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue