~mnordhoff/loggerhead/cheezum

« back to all changes in this revision

Viewing changes to loggerhead/main.py

  • Committer: Matt Nordhoff
  • Date: 2010-05-13 01:44:41 UTC
  • mfrom: (164.157.7 trunk-rich)
  • Revision ID: mnordhoff@mattnordhoff.com-20100513014441-c1z2gcz6f2gvyhl8
Merge lp:loggerhead, fixing conflicts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
104
104
    logging.getLogger('wsgi').addHandler(access_log)
105
105
    #logging.getLogger('wsgi').addHandler(debug_log)
106
106
    #logging.getLogger('wsgi').addHandler(stdout_log)
 
107
 
 
108
    def _restrict_logging(logger_name):
 
109
        logger = logging.getLogger(logger_name)
 
110
        if logger.getEffectiveLevel() < logging.INFO:
 
111
            logger.setLevel(logging.INFO)
 
112
    # simpleTAL is *very* verbose in DEBUG mode, which is otherwise the
 
113
    # default. So quiet it up a bit.
 
114
    _restrict_logging('simpleTAL')
 
115
    _restrict_logging('simpleTALES')
 
116
 
107
117
    return logging.getLogger('loggerhead')
108
118
 
109
119