diff --git a/app/__init__.py b/app/__init__.py index 5f213b3..24fbf6e 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -24,11 +24,14 @@ app = Flask(__name__) # Application version (major,minor,patch-level) -version = "1.1.6" +version = "1.1.7" """ Change Log +1.1.7 Update application logging to separate application events from + those logged by the uwsgi servivce + 1.1.6 Add email address detail for various authentication failures 1.1.5 Refactor _convert_email_uri(email) to properly handle a null @@ -83,7 +86,15 @@ 'bucket.email-confirm.freq': '1800000' } -logging.basicConfig(level=logging.DEBUG) + +# Set up Cloud Session application log details. The user account that +# this application runs under must have create and write permissions to +# the /var/log/supervisor/ folder. +# ---------------------------------------------------------------------- +logging.basicConfig(level=logging.DEBUG, + format='%(asctime)s %(levelname)s %(message)s', + filename='/var/log/supervisor/cloud-session-app.log', + filemode='w') logging.info('Log level set to %s', 'DEBUG') logging.info('Starting Cloud Session Service v%s', version)