mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-02-11 08:23:49 +00:00
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 <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
ca0479aae2
commit
15b537ccb7
@ -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():
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user