mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-01-23 17:26:46 +00:00
Removed sensitive data from logs
This commit is contained in:
parent
1071bc459b
commit
17c3e6f9e3
4
main.py
4
main.py
|
@ -98,11 +98,11 @@ def createUser():
|
||||||
print("[TRACE] {0}".format(userTemplate))
|
print("[TRACE] {0}".format(userTemplate))
|
||||||
|
|
||||||
for line in fileContent:
|
for line in fileContent:
|
||||||
index -= 1
|
index += 1
|
||||||
if line.startswith(" #begin"):
|
if line.startswith(" #begin"):
|
||||||
print("[DEBUG] Found user configuration snippet match!")
|
print("[DEBUG] Found user configuration snippet match!")
|
||||||
print("[INFO] Writing new user configuration snippet to memory...", sep="")
|
print("[INFO] Writing new user configuration snippet to memory...", sep="")
|
||||||
fileContent.insert(index, userTemplate)
|
fileContent.insert(index-1, userTemplate)
|
||||||
print("done")
|
print("done")
|
||||||
|
|
||||||
print("[INFO] Writing data from memory to file...", sep="")
|
print("[INFO] Writing data from memory to file...", sep="")
|
||||||
|
|
Loading…
Reference in a new issue