Skip to content

Commit c14e5a6

Browse files
committed
Added logging statements
1 parent aa00858 commit c14e5a6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/app.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,20 @@
44

55

66
@app.route('/')
7-
def index():
7+
def index():
8+
print('Request for index page received')
89
return render_template('index.html')
910

1011

1112
@app.route('/hello', methods=['POST'])
1213
def hello():
1314
name = request.form.get('name')
15+
1416
if name:
17+
print('Request for hello page received with name=%s' % name)
1518
return render_template('hello.html', name = name)
1619
else:
20+
print('Request for hello page received with no name or blank name -- redirecting')
1721
return redirect(url_for('index'))
1822

1923

0 commit comments

Comments
 (0)