replace passwords and apikeys with "***" in logging #69

This commit is contained in:
JHCD 2015-07-27 20:55:50 +02:00
parent 6520edea4c
commit f95a270177
3 changed files with 10 additions and 19 deletions

View file

@ -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"

View file

@ -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