diff options
author | Alexander_Kabui | 2024-08-29 10:28:34 +0300 |
---|---|---|
committer | Alexander_Kabui | 2024-08-29 10:28:34 +0300 |
commit | 7b17ab9d98f6a12f2a5b9b0eec8ff4c2c3ef2a5e (patch) | |
tree | daa0602dc076f90d1612a68be591a5d9031dd441 /gn3 | |
parent | ade1b4cb03de8a1c670a3e876b8a18692dfc7694 (diff) | |
download | genenetwork3-7b17ab9d98f6a12f2a5b9b0eec8ff4c2c3ef2a5e.tar.gz |
Add logging for gn llm errors.
Diffstat (limited to 'gn3')
-rw-r--r-- | gn3/errors.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gn3/errors.py b/gn3/errors.py index 8331028..c53604f 100644 --- a/gn3/errors.py +++ b/gn3/errors.py @@ -108,6 +108,7 @@ def handle_generic(exc: Exception) -> Response: def handle_llm_error(exc: Exception) -> Response: """ Handle llm erros if not handled anywhere else. """ + current_app.logger.error(exc) resp = jsonify({ "query": exc.args[1], "error_type": type(exc).__name__, |