~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to serve-branches.py

  • Committer: Michael Hudson
  • Date: 2008-06-24 23:20:59 UTC
  • Revision ID: michael.hudson@canonical.com-20080624232059-63y8w66cci2235dd
misc logging improvements:
 * don't call basicConfig when importing loggerhead.apps.branch.
 * log rendering time for templates.
 * more consistent logger names.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/env python
 
2
import logging
2
3
import sys
3
4
 
4
5
from paste import httpserver
7
8
 
8
9
from loggerhead.apps.filesystem import BranchesFromFileSystemRoot
9
10
 
 
11
 
 
12
logging.basicConfig()
 
13
logging.getLogger().setLevel(logging.DEBUG)
 
14
 
10
15
if len(sys.argv) > 1:
11
16
    path = sys.argv[1]
12
17
else: