From 73e92a688fdaaff613e0ffd91ab901965e1b1779 Mon Sep 17 00:00:00 2001 From: cmdr2 Date: Sat, 24 Dec 2022 15:43:06 +0530 Subject: [PATCH] color logging 2 --- ui/easydiffusion/app.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui/easydiffusion/app.py b/ui/easydiffusion/app.py index 452e07cd..2a8d0804 100644 --- a/ui/easydiffusion/app.py +++ b/ui/easydiffusion/app.py @@ -11,6 +11,10 @@ from sdkit.utils import log as sdkit_log # hack, so we can overwrite the log con from easydiffusion import task_manager from easydiffusion.utils import log +# Remove all handlers associated with the root logger object. +for handler in logging.root.handlers[:]: + logging.root.removeHandler(handler) + LOG_FORMAT = '%(asctime)s.%(msecs)03d %(levelname)s %(threadName)s %(message)s' logging.basicConfig( level=logging.INFO,