Skip to content

Commit

Permalink
fix: setup logger for custom curtinhook
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsander-souza committed Jun 25, 2024
1 parent 6682b3b commit 223c50c
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 @@ -25,7 +25,7 @@ import platform

from curtin import distro, util
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 load_command_environment, ChrootableTarget
from curtin.commands import curthooks, apt_config
Expand Down Expand Up @@ -103,6 +103,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 223c50c

Please sign in to comment.