Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: setup logger for custom curtin-hook #244

Merged
merged 1 commit into from
Jun 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading