Skip to content

Commit

Permalink
Merge pull request #29 from sdaza/dev
Browse files Browse the repository at this point in the history
fix logging
  • Loading branch information
sdaza authored Dec 13, 2024
2 parents ae6b3dc + 32545d9 commit ea07ffe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 0 additions & 3 deletions experiment_utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
Experiment design and analysis utils
"""

import logging
from .experiment_analyzer import *
from .power_sim import *
from .utils import *

logging.getLogger(__name__).addHandler(logging.NullHandler())
3 changes: 2 additions & 1 deletion experiment_utils/experiment_analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ def __init__(

self.logger = logging.getLogger('Experiment Analyzer')
self.logger.setLevel(logging.INFO)
self.logger.handlers = []
if self.logger.hasHandlers():
self.logger.handlers.clear()
console_handler = logging.StreamHandler()
console_handler.setFormatter(
logging.Formatter(
Expand Down

0 comments on commit ea07ffe

Please sign in to comment.