File tree Expand file tree Collapse file tree
src/nypl_py_utils/functions Expand file tree Collapse file tree Original file line number Diff line number Diff 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
4538def standard_logger (module ):
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments