fix logger level

pull/60/head
Andray 2024-03-11 19:28:12 +04:00
parent 6a77f15a9c
commit a51ed9ebe4
1 changed files with 9 additions and 2 deletions

View File

@ -1,5 +1,12 @@
import sys
import logging
try:
import modules.shared
IS_INSIDE_WEBUI = True
except ImportError:
IS_INSIDE_WEBUI = False
if not IS_INSIDE_WEBUI:
logging.getLogger().addHandler(logging.StreamHandler(sys.stdout))
logging.getLogger().setLevel(logging.INFO)