Atualizar app/app.py
This commit is contained in:
+13
@@ -175,6 +175,19 @@ def require_capability(cap):
|
|||||||
return decorator
|
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
|
# AUTH
|
||||||
# ================
|
# ================
|
||||||
|
|||||||
Reference in New Issue
Block a user