Add model auto-download and English logging

This commit is contained in:
Dymas
2026-06-06 12:47:59 +02:00
parent d8b92d5025
commit 0c7f93d067
17 changed files with 204 additions and 77 deletions
+2 -2
View File
@@ -91,7 +91,7 @@ class RequestLogger:
return
g.start_time = time.time()
self.logger.info(
"%s %s от %s",
"%s %s from %s",
request.method, request.path, self._get_client_ip(),
extra={"type": "request"}
)
@@ -101,7 +101,7 @@ class RequestLogger:
return response
processing_time = time.time() - getattr(g, 'start_time', time.time())
self.logger.info(
"%s за %.3f сек",
"%s in %.3f sec",
response.status_code, processing_time,
extra={"type": "response"}
)