summaryrefslogtreecommitdiffstats
path: root/g4f/gui/server/backend.py
diff options
context:
space:
mode:
authorH Lohaus <hlohaus@users.noreply.github.com>2024-01-13 15:57:00 +0100
committerGitHub <noreply@github.com>2024-01-13 15:57:00 +0100
commit693b15231de4abd785fcefc3a8ade7f66008388a (patch)
treebb6bf7350a4cb7c1a8b14430d8b1168b32ae197d /g4f/gui/server/backend.py
parentMerge pull request #1461 from Akash98Sky/main (diff)
parentFix merge issues (diff)
downloadgpt4free-693b15231de4abd785fcefc3a8ade7f66008388a.tar
gpt4free-693b15231de4abd785fcefc3a8ade7f66008388a.tar.gz
gpt4free-693b15231de4abd785fcefc3a8ade7f66008388a.tar.bz2
gpt4free-693b15231de4abd785fcefc3a8ade7f66008388a.tar.lz
gpt4free-693b15231de4abd785fcefc3a8ade7f66008388a.tar.xz
gpt4free-693b15231de4abd785fcefc3a8ade7f66008388a.tar.zst
gpt4free-693b15231de4abd785fcefc3a8ade7f66008388a.zip
Diffstat (limited to 'g4f/gui/server/backend.py')
-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"