fix: Update logging
All checks were successful
Build Docker / Build Image (push) Successful in 20s

This commit is contained in:
Nathan Woodburn 2023-11-07 23:11:08 +11:00
parent 37ee3e747a
commit f1d1504657
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1
2 changed files with 8 additions and 6 deletions

View File

@ -10,10 +10,10 @@ def gift(name,email,referer, ip):
global loaded global loaded
global gifts global gifts
print("Name: " + name) print("Name: " + name,flush=True)
print("Email: " + email) print("Email: " + email,flush=True)
print("Referer: " + referer) print("Referer: " + referer,flush=True)
print("IP: " + ip) print("IP: " + ip,flush=True)
path = '/data/gifts.json' path = '/data/gifts.json'
if os.getenv('local') == 'true': if os.getenv('local') == 'true':

View File

@ -35,7 +35,9 @@ def submit():
hidden = 'None' hidden = 'None'
status = gift.gift(name, email, hidden, ip) status = gift.gift(name, email, hidden, ip)
print(status) print(status,flush=True)
print(request.headers,flush=True)
if status == True: if status == True:
return render_template('success.html') return render_template('success.html')
else: else: