Skip to content

Commit

Permalink
Removed commented codes
Browse files Browse the repository at this point in the history
  • Loading branch information
Chsudeepta authored and Chsudeepta committed Oct 16, 2024
1 parent b378003 commit c5f609b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
10 changes: 0 additions & 10 deletions src/ibex_bluesky_core/logger/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,3 @@

blueskylogger = logging.getLogger('blueskycore')

#This code or an adapted version is only needed if only specific loggers are to share the handler:
#
# 1. Remove disable_existing_loggers or set to True ==> logging.config.fileConfig(os.path.join(filepath, 'logging.conf'))
#from bluesky.log import config_bluesky_logging
#for handler in blueskylogger.handlers:
# if isinstance(handler, logging.handlers.TimedRotatingFileHandler):
# logger = logging.getLogger(BLUESKY_LOGGER)
# if not logger.handlers:
# logger.addHandler(handler)

8 changes: 1 addition & 7 deletions tests/logger/test_logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,4 @@ def test_GIVEN_logging_is_requested_THEN_handler_is_added():
assert handler.when.lower() == 'midnight'
assert handler.baseFilename.endswith(LOG_FILE_NAME) == True









0 comments on commit c5f609b

Please sign in to comment.