Skip to content

Commit

Permalink
fix: setup logger for custom curtin-hook (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsander-souza authored Jun 25, 2024
1 parent 012666a commit e3888d9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ubuntu/scripts/curtin-hooks
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import sys
from curtin import distro, util
from curtin.commands import apt_config, curthooks
from curtin.config import load_command_config
from curtin.log import LOG
from curtin.log import DEBUG, LOG, basicConfig
from curtin.paths import target_path
from curtin.util import ChrootableTarget, load_command_environment

Expand Down Expand Up @@ -108,6 +108,8 @@ def main():
config = load_command_config(None, state)
target = state["target"]

basicConfig(stream=sys.stderr, verbosity=DEBUG)

curthook(config, target, state)
cleanup()

Expand Down

0 comments on commit e3888d9

Please sign in to comment.