Skip to content

Commit

Permalink
amend! Simplify root logger configuration
Browse files Browse the repository at this point in the history
Simplify root logger configuration (canonical#4435)

The root logger gets configured at various stages of cloudinit execution.
Some changes occur while importing cloudinit.log, which causes side effects
in any project using cloudinit as a library (Ubuntu Pro, etc). These
modifications do not require change during runtime and can take place as
an early setup task in cloudinit.cmd.main::main().

Simplify this code, relocate logger configuration code to a function in
cloudinit.log, set the callsite in cloudinit.cmd.main::main().

Also add context to logging configuration code.
  • Loading branch information
holmanb committed Sep 20, 2023
1 parent 188dd25 commit 3ec87b3
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 3ec87b3

Please sign in to comment.