Added logging to myapp.py