Skip to content

Commit d81adde

Browse files
rm comment
1 parent 3206528 commit d81adde

2 files changed

Lines changed: 1 addition & 8 deletions

File tree

src/nypl_py_utils/functions/log_helper.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,6 @@ def get_structlog(module):
3333
logger_factory=structlog.PrintLoggerFactory(),
3434
)
3535

36-
# Import this to get an immutable common logger with the above format- you can further use
37-
#
38-
# custom_logger = common_logger.bind(some_key=some_value)
39-
#
40-
# to create your own logger with custom fields persisted on top of common ones.
41-
#
42-
# See https://www.structlog.org/en/stable/bound-loggers.html
4336
return structlog.get_logger(module)
4437

4538
def standard_logger (module):

tests/test_log_helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class TestLogHelper:
1616
def mock_logger(self, mocker):
1717
mocker.patch('src.nypl_py_utils.functions.log_helper.structlog.get_logger', return_value=ReturnLogger)
1818

19-
def test_json_logging(self, mock_logger):
19+
def test_json_logging(self):
2020
logger = create_log('test_log', json=True)
2121
log = logger.info('testtt', some="json")
2222
print('capture_logs', log)

0 commit comments

Comments
 (0)