~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/apps/branch.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:
16
16
from loggerhead.history import History
17
17
from loggerhead import util
18
18
 
19
 
logging.basicConfig()
20
 
logging.getLogger().setLevel(logging.DEBUG)
21
19
 
22
20
class BranchWSGIApp(object):
23
21
 
26
24
        self._history = None
27
25
        self._config = config
28
26
        self.friendly_name = friendly_name
29
 
        self.log = logging.getLogger(friendly_name)
 
27
        self.log = logging.getLogger('loggerhead.%s' % (friendly_name,))
30
28
 
31
29
    @property
32
30
    def history(self):