Skip to content

Commit 97dc3d1

Browse files
authored
Merge pull request #49 from zfi/master
Update application logging
2 parents 9e35ac0 + e84689b commit 97dc3d1

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

app/__init__.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,14 @@
2424
app = Flask(__name__)
2525

2626
# Application version (major,minor,patch-level)
27-
version = "1.1.6"
27+
version = "1.1.7"
2828

2929
"""
3030
Change Log
3131
32+
1.1.7 Update application logging to separate application events from
33+
those logged by the uwsgi servivce
34+
3235
1.1.6 Add email address detail for various authentication failures
3336
3437
1.1.5 Refactor _convert_email_uri(email) to properly handle a null
@@ -83,7 +86,15 @@
8386
'bucket.email-confirm.freq': '1800000'
8487
}
8588

86-
logging.basicConfig(level=logging.DEBUG)
89+
90+
# Set up Cloud Session application log details. The user account that
91+
# this application runs under must have create and write permissions to
92+
# the /var/log/supervisor/ folder.
93+
# ----------------------------------------------------------------------
94+
logging.basicConfig(level=logging.DEBUG,
95+
format='%(asctime)s %(levelname)s %(message)s',
96+
filename='/var/log/supervisor/cloud-session-app.log',
97+
filemode='w')
8798
logging.info('Log level set to %s', 'DEBUG')
8899
logging.info('Starting Cloud Session Service v%s', version)
89100

0 commit comments

Comments
 (0)