mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-10 18:40:53 +00:00
Remove environment variables from logs only if they are in the requests
This commit is contained in:
parent
cdae6f04e9
commit
58cdbf7450
1 changed files with 2 additions and 1 deletions
|
@ -113,7 +113,8 @@ class Application(object):
|
||||||
"""Remove environment variables from the headers for logging."""
|
"""Remove environment variables from the headers for logging."""
|
||||||
request_environ = dict(environ)
|
request_environ = dict(environ)
|
||||||
for shell_variable in os.environ:
|
for shell_variable in os.environ:
|
||||||
del request_environ[shell_variable]
|
if shell_variable in request_environ:
|
||||||
|
del request_environ[shell_variable]
|
||||||
return request_environ
|
return request_environ
|
||||||
# pylint: enable=E0202
|
# pylint: enable=E0202
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue