Skip to content

Commit

Permalink
amend
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoens committed Jan 31, 2024
1 parent 2c737d6 commit 2797de8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions torchrl/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
LOGGING_LEVEL = os.environ.get("RL_LOGGING_LEVEL", "DEBUG")
logger = logging.getLogger(__name__)
logger.setLevel(getattr(logging, LOGGING_LEVEL))
# Disable propagation to the root logger
logger.propagate = False
# Remove all attached handlers
while logger.hasHandlers():
logger.removeHandler(logger.handlers[0])
Expand Down

0 comments on commit 2797de8

Please sign in to comment.