Skip to content

Commit

Permalink
Assure molecule uses root logger (#3079)
Browse files Browse the repository at this point in the history
Instead of using a names "molecule" logger, we configure the root
logger so we do not lose messages produced by other modules.
  • Loading branch information
ssbarnea authored Mar 22, 2021
1 parent 265d99f commit 7944308
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/molecule/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ def configure() -> None:
All other loggers will inherit the configuration we set here.
"""
logger = logging.getLogger("molecule")
# Keep using root logger because we do want to process messages from other
# libraries.
logger = logging.getLogger()
handler = RichHandler(
console=console, show_time=False, show_path=False, markup=True
) # type: ignore
Expand Down

0 comments on commit 7944308

Please sign in to comment.