From 15b537ccb7cbb5079fe6fec17bf144935f86bd13 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Fri, 1 Mar 2024 20:08:04 -0800 Subject: [PATCH] log: Don't log with in color inside actions scripts This would be better for collecting the stderr of the action and logging it again. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/log.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plinth/log.py b/plinth/log.py index 5b5b7974f..69199c5d2 100644 --- a/plinth/log.py +++ b/plinth/log.py @@ -76,7 +76,9 @@ def action_init(): """Initialize logging for action scripts.""" _capture_warnings() - logging.config.dictConfig(get_configuration()) + configuration = get_configuration() + del configuration['handlers']['console']['formatter'] + logging.config.dictConfig(configuration) def init():