Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions fastdeploy/logger/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,7 @@ def get_trace_logger(self, name, file_name, without_formater=False, print_to_con
logger.addHandler(console_handler)
console_handler.propagate = False
Comment thread
gongweibao marked this conversation as resolved.
Outdated

# Set propagate (maintain original logic)
# logger.propagate = False
logger.propagate = False

return logger

Expand Down Expand Up @@ -311,8 +310,7 @@ def _get_legacy_logger(self, name, file_name, without_formater=False, print_to_c
logger.addHandler(console_handler)
console_handler.propagate = False
Comment thread
gongweibao marked this conversation as resolved.
Outdated

# Set propagate (maintain original logic)
# logger.propagate = False
logger.propagate = False

return logger

Expand Down
2 changes: 1 addition & 1 deletion tests/logger/test_logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def test_legacy_logger_creation(self):
def test_logger_propagate(self):
"""Test log propagation settings"""
legacy_logger = self.logger._get_legacy_logger("test", "test.log")
self.assertTrue(legacy_logger.propagate)
self.assertFalse(legacy_logger.propagate)
Comment thread
gongweibao marked this conversation as resolved.

def test_get_trace_logger_basic(self):
"""Test basic functionality of get_trace_logger"""
Expand Down
Loading