🔧 chore(chat.py): refactor error logging in try_running_celery_task function to improve readability and reduce noise
🐛 fix(chat.py): change error logging level from error to debug in try_running_celery_task function to reduce noise
This commit is contained in:
parent
c67d7da5e2
commit
2b7062a3ec
1 changed files with 1 additions and 2 deletions
|
|
@ -239,8 +239,7 @@ def try_running_celery_task(vertex):
|
||||||
task = build_vertex.delay(vertex)
|
task = build_vertex.delay(vertex)
|
||||||
vertex.task_id = task.id
|
vertex.task_id = task.id
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logger.exception(exc)
|
logger.debug(f"Error running task in celery: {exc}")
|
||||||
logger.error("Error running task in celery, running locally")
|
|
||||||
vertex.task_id = None
|
vertex.task_id = None
|
||||||
vertex.build()
|
vertex.build()
|
||||||
return vertex
|
return vertex
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue