fix start_time -> update_time

This commit is contained in:
Yansong Zhang
2026-02-04 13:30:45 +08:00
parent ef1e233c2d
commit f8cc056604

View File

@ -50,10 +50,10 @@ def update_api_token_last_used_task(self, token: str, scope: str | None, update_
return result
except Exception as exc:
# Log the error with full context (logger.exception includes traceback)
except Exception:
# Log the error with full context (logger.exception includes traceback automatically)
logger.exception("Error in update_api_token_last_used_task (token: %s..., scope: %s)", token[:10], scope)
# Raise exception to let Celery handle retry and monitoring
# This allows Flower and other monitoring tools to track failures
raise