🔧 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:
Gabriel Luiz Freitas Almeida 2023-10-03 21:32:25 -03:00
commit 2b7062a3ec

View file

@ -239,8 +239,7 @@ def try_running_celery_task(vertex):
task = build_vertex.delay(vertex)
vertex.task_id = task.id
except Exception as exc:
logger.exception(exc)
logger.error("Error running task in celery, running locally")
logger.debug(f"Error running task in celery: {exc}")
vertex.task_id = None
vertex.build()
return vertex