summaryrefslogtreecommitdiffstats
path: root/g4f/gui/server
diff options
context:
space:
mode:
Diffstat (limited to 'g4f/gui/server')
-rw-r--r--g4f/gui/server/backend.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/g4f/gui/server/backend.py b/g4f/gui/server/backend.py
index 3ccd1a59..9d12bea5 100644
--- a/g4f/gui/server/backend.py
+++ b/g4f/gui/server/backend.py
@@ -110,7 +110,8 @@ class Backend_Api:
'provider': get_last_provider(True)
}) + "\n"
if isinstance(chunk, Exception):
- yield json.dumps({
+ logging.exception(chunk)
+ yield json.dumps({
'type' : 'message',
'message': get_error_message(chunk),
}) + "\n"