mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-04-29 10:10:19 +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."""
|
"""Initialize logging for action scripts."""
|
||||||
_capture_warnings()
|
_capture_warnings()
|
||||||
|
|
||||||
logging.config.dictConfig(get_configuration())
|
configuration = get_configuration()
|
||||||
|
del configuration['handlers']['console']['formatter']
|
||||||
|
logging.config.dictConfig(configuration)
|
||||||
|
|
||||||
|
|
||||||
def init():
|
def init():
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user