From f1ce51d78fa170a2c23e57af0022025e3446c8d1 Mon Sep 17 00:00:00 2001 From: OlarAlca Date: Tue, 22 Sep 2020 10:47:06 -0500 Subject: [PATCH 1/2] [FIX] server_environment: changed warning for debug log - Even when the app server_environment was not installed the method load_running_env was triggering a warning in the logger. --- server_environment/serv_config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server_environment/serv_config.py b/server_environment/serv_config.py index 4bd1d39..e53947f 100644 --- a/server_environment/serv_config.py +++ b/server_environment/serv_config.py @@ -49,8 +49,8 @@ _boolean_states = {'1': True, 'yes': True, 'true': True, 'on': True, def _load_running_env(): if not system_base_config.get("running_env"): - _logger.warning("`running_env` not found. Using default = `test`.") - _logger.warning( + _logger.debug("`running_env` not found. Using default = `test`.") + _logger.debug( "We strongly recommend against using the rc file but instead use an " "explicit config file or env variable." ) From 633c49315f55f2d28ec99280b5b5ac1ea57e4165 Mon Sep 17 00:00:00 2001 From: "Olar Alca [Vauxoo]" Date: Tue, 22 Sep 2020 12:31:56 -0500 Subject: [PATCH 2/2] Update server_environment/serv_config.py Co-authored-by: Moises Lopez - https://www.vauxoo.com/ --- server_environment/serv_config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server_environment/serv_config.py b/server_environment/serv_config.py index e53947f..7c2a9da 100644 --- a/server_environment/serv_config.py +++ b/server_environment/serv_config.py @@ -49,8 +49,8 @@ _boolean_states = {'1': True, 'yes': True, 'true': True, 'on': True, def _load_running_env(): if not system_base_config.get("running_env"): - _logger.debug("`running_env` not found. Using default = `test`.") - _logger.debug( + _logger.info("`running_env` not found. Using default = `test`.") + _logger.info( "We strongly recommend against using the rc file but instead use an " "explicit config file or env variable." )