Added debug entries

This commit is contained in:
Illia Chub 2021-01-04 16:40:32 +02:00
parent 8cca0f0625
commit 1019679140

View file

@ -16,7 +16,9 @@ def getDkimKey():
with open("/var/domain") as domainFile: with open("/var/domain") as domainFile:
domain = domainFile.readline() domain = domainFile.readline()
domain = domain.rstrip("\n") 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) return jsonify(dkim)
@app.route("/pythonVersion", methods=["GET"]) @app.route("/pythonVersion", methods=["GET"])
def getPythonVersion(): def getPythonVersion():