You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/Secure-Coding-Guide-for-Python/CWE-664/CWE-532/README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,7 @@ main()
54
54
55
55
## Example Solution
56
56
57
-
The `example01.py` solution uses a custom filter in Python's logging module to automatically mask sensitive data in the logs. While this is a good solution for central handling in large software project it does require that all modules use the same string such as `password=`, variation's such as `pass=` or pass: won't work and continue to print the plain text password.
57
+
The `example01.py` solution uses a custom filter in Python's logging module to automatically mask sensitive data in the logs. While this is a good solution for central handling in large software project it does require that all modules use the same string such as `password=`, variations such as `pass=` or pass: won't work and continue to print the plain text password.
58
58
59
59
*[example01.py](example01.py):*
60
60
@@ -149,11 +149,11 @@ For security purposes, sensitive information should never be printed to the cons
149
149
150
150
*`DEBUG`
151
151
*`INFO`
152
-
* WARNING (default)
153
-
* ERROR
154
-
* CRITICAL
152
+
*`WARNING` (default)
153
+
*`ERROR`
154
+
*`CRITICAL`
155
155
156
-
If we set the level to DEBUG or INFO we will see the info and debug logs being printed to the console.
156
+
If we set the level to `DEBUG` or `INFO` we will see the info and debug logs being printed to the console.
157
157
The `noncompliant02.py` code has the log level set to DEBUG is causing the customer's address to appear in the console.
0 commit comments