arcane-flask 2.2.0__tar.gz → 2.2.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {arcane_flask-2.2.0 → arcane_flask-2.2.2}/PKG-INFO +1 -1
- {arcane_flask-2.2.0 → arcane_flask-2.2.2}/arcane/flask/log.py +5 -1
- {arcane_flask-2.2.0 → arcane_flask-2.2.2}/pyproject.toml +1 -1
- {arcane_flask-2.2.0 → arcane_flask-2.2.2}/README.md +0 -0
- {arcane_flask-2.2.0 → arcane_flask-2.2.2}/arcane/flask/__init__.py +0 -0
- {arcane_flask-2.2.0 → arcane_flask-2.2.2}/arcane/flask/authentication.py +0 -0
- {arcane_flask-2.2.0 → arcane_flask-2.2.2}/arcane/flask/exception_decorator.py +0 -0
- {arcane_flask-2.2.0 → arcane_flask-2.2.2}/arcane/flask/http_response.py +0 -0
- {arcane_flask-2.2.0 → arcane_flask-2.2.2}/arcane/flask/services.py +0 -0
- {arcane_flask-2.2.0 → arcane_flask-2.2.2}/arcane/flask/tracking.py +0 -0
- {arcane_flask-2.2.0 → arcane_flask-2.2.2}/arcane/flask/types.py +0 -0
|
@@ -7,7 +7,7 @@ from typing import Any, Callable, Literal, Optional
|
|
|
7
7
|
from flask import g, has_request_context, request
|
|
8
8
|
from flask_log_request_id import current_request_id
|
|
9
9
|
|
|
10
|
-
STANDARD_FORMAT = '{"severity": "%(levelname)s", "logging.googleapis.com/trace": "%(cloud_trace)s", "logging.googleapis.com/spanId": "%(span_id)s", "component": "arbitrary", "message":
|
|
10
|
+
STANDARD_FORMAT = '{"severity": "%(levelname)s", "logging.googleapis.com/trace": "%(cloud_trace)s", "logging.googleapis.com/spanId": "%(span_id)s", "component": "arbitrary", "message": %(message)s, "logging.googleapis.com/labels": %(labels)s}'
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
class LabelFilter(logging.Filter):
|
|
@@ -201,5 +201,9 @@ def setup_logging(
|
|
|
201
201
|
if not filter:
|
|
202
202
|
filter = LabelFilter()
|
|
203
203
|
|
|
204
|
+
|
|
204
205
|
root.addFilter(filter)
|
|
206
|
+
for handler in root.handlers:
|
|
207
|
+
handler.addFilter(filter)
|
|
208
|
+
|
|
205
209
|
return root
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|