Skip to content

Commit

Permalink
bugfix in logging (affects only tests)
Browse files Browse the repository at this point in the history
  • Loading branch information
lausser committed Oct 9, 2023
1 parent f10c655 commit 34fb66e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
* 2023-10-09 10.0.0.4
bugfix in logging (affects only tests)
* 2023-10-06 10.0.0.3
add publisher workflow
* 2023-10-06 10.0
Expand Down
2 changes: 1 addition & 1 deletion coshsh/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def switch_logging(**kwargs):
logger.debug("Logger switches to " + abs_logfile)
# remove the txt_handler
logger.removeHandler(setup_logging.txt_handler)
for handler in logger.handlers:
for handler in [h for h in logger.handlers]:
if hasattr(handler, "baseFilename"):
logger.removeHandler(handler)
txt_handler = RotatingFileHandler(abs_logfile, backupCount=backup_count, maxBytes=20*1024*1024, delay=True)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def run(self):


setup(name='coshsh',
version='10.0.0.3',
version='10.0.0.4',
setup_requires=['wheel'],
description='Coshsh - config generator for monitoring systems',
long_description=open('README.md').read(),
Expand Down

0 comments on commit 34fb66e

Please sign in to comment.