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.
- sycommon/logging/kafka_log.py +2 -1
- sycommon/rabbitmq/rabbitmq_client.py +224 -290
- sycommon/rabbitmq/rabbitmq_pool.py +182 -154
- sycommon/rabbitmq/rabbitmq_service_client_manager.py +47 -53
- sycommon/rabbitmq/rabbitmq_service_consumer_manager.py +3 -1
- sycommon/rabbitmq/rabbitmq_service_core.py +2 -2
- sycommon/rabbitmq/rabbitmq_service_producer_manager.py +8 -5
- sycommon/synacos/nacos_config_manager.py +2 -1
- sycommon/synacos/nacos_heartbeat_manager.py +3 -1
- sycommon/synacos/nacos_service.py +4 -3
- sycommon/synacos/nacos_service_discovery.py +4 -2
- sycommon/synacos/nacos_service_registration.py +28 -10
- sycommon/tools/env.py +62 -0
- {sycommon_python_lib-0.1.56b10.dist-info → sycommon_python_lib-0.1.56b12.dist-info}/METADATA +1 -1
- {sycommon_python_lib-0.1.56b10.dist-info → sycommon_python_lib-0.1.56b12.dist-info}/RECORD +18 -17
- {sycommon_python_lib-0.1.56b10.dist-info → sycommon_python_lib-0.1.56b12.dist-info}/WHEEL +0 -0
- {sycommon_python_lib-0.1.56b10.dist-info → sycommon_python_lib-0.1.56b12.dist-info}/entry_points.txt +0 -0
- {sycommon_python_lib-0.1.56b10.dist-info → sycommon_python_lib-0.1.56b12.dist-info}/top_level.txt +0 -0
sycommon/logging/kafka_log.py
CHANGED
|
@@ -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
|
|
289
|
+
if check_env_flag(['DEV-LOG']):
|
|
289
290
|
print(log_json)
|
|
290
291
|
|
|
291
292
|
@staticmethod
|