sycommon-python-lib 0.1.56b10__py3-none-any.whl → 0.1.56b12__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,6 +12,7 @@ from loguru import logger
12
12
 
13
13
  from sycommon.config.Config import Config, SingletonMeta
14
14
  from sycommon.middleware.context import current_trace_id, current_headers
15
+ from sycommon.tools.env import check_env_flag
15
16
  from sycommon.tools.snowflake import Snowflake
16
17
 
17
18
  # 配置Loguru的颜色方案
@@ -285,7 +286,7 @@ class SYLogger:
285
286
  else:
286
287
  logger.info(log_json)
287
288
 
288
- if os.getenv('DEV-LOG', 'false').lower() == 'true':
289
+ if check_env_flag(['DEV-LOG']):
289
290
  print(log_json)
290
291
 
291
292
  @staticmethod