~unity-2d-team/unity-2d/Shell-MultiMonitor

« back to all changes in this revision

Viewing changes to grackle/server/wsgi.py

  • Committer: William Grant
  • Date: 2012-01-22 06:35:09 UTC
  • Revision ID: william.grant@canonical.com-20120122063509-4dbvndxl7jhg7mvv
Extract some message metadata. Log betterer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
app = web.application(urls, globals(), autoreload=False)
65
65
 
66
66
if __name__ == "__main__":
67
 
    conn = CassandraConnection('grackle', 'localhost/9160')
 
67
    import logging
 
68
    logging.basicConfig(
 
69
        format='%(asctime)s:%(levelname)s:%(name)s:%(message)s',
 
70
        level=logging.DEBUG)
 
71
    conn = CassandraConnection('grackle', ['localhost:9160'])
68
72
    app.run()