From 6b8f12fdb614dcfa6e10ce293ce81ee16221216e Mon Sep 17 00:00:00 2001 From: Renato Rosa Date: Wed, 19 Aug 2026 22:00:50 -0300 Subject: [PATCH] Atualizar app/app.py --- app/app.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/app/app.py b/app/app.py index d86b303..14b11cf 100644 --- a/app/app.py +++ b/app/app.py @@ -175,6 +175,19 @@ def require_capability(cap): return decorator +@app.before_request +def enforce_system_language(): + # All internal system logs/messages must be in English. + logger.info( + "request_received", + path=request.path, + method=request.method, + lang=Config.SYSTEM_LANG + ) + + + + # ================ # AUTH # ================