Skip to content

Commit

Permalink
Merge pull request #63 from geoadmin/develop
Browse files Browse the repository at this point in the history
New Release v1.5.4 - #patch
  • Loading branch information
ltshb authored Aug 29, 2022
2 parents df718db + d1c220b commit a1d0ba9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ PyYAML = ">=5.4"
gevent = "~=20.9.0"
gunicorn = "~=19.9.0"
Flask = "~=2.1.1"
logging-utilities = "~=2.0"
logging-utilities = "~=3.0"
defusedxml = "~=0.7.1"
boto3 = "~=1.17.60"
botocore = "~=1.20.98"
Expand Down
9 changes: 4 additions & 5 deletions app/config/logging-cfg-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,11 @@ filters:

formatters:
standard:
(): logging_utilities.formatters.extra_formatter.ExtraFormatter
format: "[%(asctime)s] %(levelname)-8s - %(name)-26s : %(message)s"
verbose:
(): logging_utilities.formatters.extra_formatter.ExtraFormatter
format: "[%(asctime)s] %(levelname)-8s - %(name)-26s : %(message)s"
extra_fmt: " : path=%(request_path)s headers=%(request_headers)s payload=%(request_form)s"
extra_fmt: " : path=%(flask_request_path)s headers=%(flask_request_headers)s payload=%(flask_request_form)s"
json:
(): logging_utilities.formatters.json_formatter.JsonFormatter
add_always_extra: False
Expand All @@ -58,7 +57,7 @@ formatters:
- flask_request_method
- flask_request_query_string
- flask_request_headers
- flask_request_form
- flask_request_json
- flask_request_remote_addr
remove_empty: True
ignore_missing: True
Expand All @@ -75,12 +74,12 @@ formatters:
path: "%(flask_request_path)s"
method: "%(flask_request_method)s"
queryString: "%(flask_request_query_string)s"
headers: "%(flask_request_headers)s"
headers: flask_request_headers.
remoteAddr: "%(flask_request_remote_addr)s"
payload: "%(flask_request_form).128s"
response:
statusCode: response.status_code
headers: response.headers
headers: response.headers.
duration: "%(duration)s"
payload: "%(response.json).128s"
message: message
Expand Down

0 comments on commit a1d0ba9

Please sign in to comment.