mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2026-04-04 14:07:25 +00:00
replace passwords and apikeys with "***" in logging #69
This commit is contained in:
parent
6520edea4c
commit
f95a270177
3 changed files with 10 additions and 19 deletions
|
|
@ -31,6 +31,6 @@ ricDescribtionList = {}
|
|||
# function -> read only in script
|
||||
def getVers(mode="vers"):
|
||||
if mode == "vers":
|
||||
return "2.0"
|
||||
return "2.1-dev"
|
||||
elif mode == "date":
|
||||
return " 2015/07/13"
|
||||
return "2015/07/27"
|
||||
|
|
|
|||
|
|
@ -28,6 +28,8 @@ def checkConfig(section=""):
|
|||
logging.debug("read [%s] from config file", section)
|
||||
|
||||
for key,val in globals.config.items(section):
|
||||
if ("password" in key) or ("apikey" in key):
|
||||
val = "***"
|
||||
logging.debug(" - %s = %s", key, val)
|
||||
|
||||
return True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue