Use logger.exception() instead of traceback.print_exc() for error messages

This commit is contained in:
oobabooga 2026-03-18 20:42:20 -07:00
parent eeb0e5700f
commit 779e7611ff
10 changed files with 23 additions and 38 deletions

View file

@ -1,8 +1,8 @@
import traceback
from queue import Queue
from threading import Thread
import modules.shared as shared
from modules.logging_colors import logger
class StopNowException(Exception):
@ -38,8 +38,7 @@ class Iteratorize:
except StopNowException:
pass
except Exception:
traceback.print_exc()
pass
logger.exception("Failed in generation callback")
self.q.put(self.sentinel)
if self.c_callback: