Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Anti-censorship
BridgeDB
Commits
131e0f9b
Commit
131e0f9b
authored
Jul 09, 2013
by
Matthew Finkel
Browse files
Add utility module with safe logging functions and new SAFELOGGING config option
parent
7bde75e2
Changes
2
Hide whitespace changes
Inline
Side-by-side
bridgedb.conf
View file @
131e0f9b
...
...
@@ -12,6 +12,9 @@ PIDFILE = "bridgedb.pid"
# Either a file to log to, or None if we should log to the console.
LOGFILE
=
"bridgedb.log"
# If true, we scrub all potentially identifying information before we log it
SAFELOGGING
=
True
# Logfile rotation settings
LOGFILE_COUNT
=
5
LOGFILE_ROTATE_SIZE
=
10000000
...
...
lib/bridgedb/Util.py
0 → 100644
View file @
131e0f9b
safe_logging
=
True
def
set_safe_logging
(
safe
):
global
safe_logging
safe_logging
=
safe
def
logSafely
(
val
):
if
safe_logging
:
return
"[scrubbed]"
else
:
return
val
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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