mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-04-20 14:03:45 +00:00
Use logger.exception() instead of traceback.print_exc() for error messages
This commit is contained in:
parent
eeb0e5700f
commit
779e7611ff
10 changed files with 23 additions and 38 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue