mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-25 21:41:27 +00:00
Added debug entries
This commit is contained in:
parent
8cca0f0625
commit
1019679140
4
main.py
4
main.py
|
@ -16,7 +16,9 @@ def getDkimKey():
|
|||
with open("/var/domain") as domainFile:
|
||||
domain = domainFile.readline()
|
||||
domain = domain.rstrip("\n")
|
||||
dkim = subprocess.check_output(["cat", "/var/dkim/" + domain + ".selector.txt"])
|
||||
catProcess = subprocess.Popen(["cat", "/var/dkim/" + domain + ".selector.txt"], stdout=subprocess.PIPE)
|
||||
dkim = catProcess.communicate()[0]
|
||||
print(dkim)
|
||||
return jsonify(dkim)
|
||||
@app.route("/pythonVersion", methods=["GET"])
|
||||
def getPythonVersion():
|
||||
|
|
Loading…
Reference in a new issue