/loggerhead/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/loggerhead/trunk

« back to all changes in this revision

Viewing changes to loggerhead/main.py

  • Committer: Colin Watson
  • Date: 2022-08-08 12:52:14 UTC
  • Revision ID: cjwatson@canonical.com-20220808125214-2m5wef21qyz6c9z3
Add several more NEWS entries since 1.20.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
84
84
    # if it is configured to suppress it
85
85
    handler.setLevel(logging.DEBUG)
86
86
    logger.addHandler(handler)
 
87
    def _restrict_logging(logger_name):
 
88
        logger = logging.getLogger(logger_name)
 
89
        if logger.getEffectiveLevel() < logging.INFO:
 
90
            logger.setLevel(logging.INFO)
 
91
    # simpleTAL is *very* verbose in DEBUG mode, which is otherwise the
 
92
    # default. So quiet it up a bit.
 
93
    _restrict_logging('simpleTAL')
 
94
    _restrict_logging('simpleTALES')
87
95
    return logger
88
96
 
89
97