From e3888d9f52ded0160c27648d99448c02e146aa98 Mon Sep 17 00:00:00 2001 From: Alexsander de Souza <61709370+alexsander-souza@users.noreply.github.com> Date: Tue, 25 Jun 2024 17:05:26 -0300 Subject: [PATCH] fix: setup logger for custom curtin-hook (#244) --- ubuntu/scripts/curtin-hooks | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ubuntu/scripts/curtin-hooks b/ubuntu/scripts/curtin-hooks index 29e24da..df1162e 100644 --- a/ubuntu/scripts/curtin-hooks +++ b/ubuntu/scripts/curtin-hooks @@ -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 @@ -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()