Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Kontr 2.0
Portal API Backend
Commits
187a872e
Verified
Commit
187a872e
authored
Oct 15, 2018
by
Peter Stanko
Browse files
Removed requests logging
parent
969ab748
Pipeline
#17427
passed with stage
in 9 minutes and 48 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
portal/__init__.py
View file @
187a872e
...
...
@@ -121,12 +121,6 @@ def create_app(environment: str = None):
configure_extensions
(
app
)
configure_async
(
app
)
rest
.
register_namespaces
(
app
)
@
app
.
before_request
def
__before_request
():
from
flask
import
request
body
=
request
.
get_data
(
as_text
=
True
)
if
request
.
data
else
''
app
.
logger
.
debug
(
f
"[
{
request
.
method
}
]
{
request
.
url
}
-
{
body
}
"
)
return
app
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment