This file is indexed.

/usr/share/pyshared/landscape/lib/log.py is in landscape-common 12.04.3-0ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
import logging


def log_failure(failure, msg=None, logger=None):
    """Log a L{twisted.python.failure.Failure} to the Python L{logging} module.

    The failure should be formatted as a regular exception, but a traceback may
    not be available.

    If C{msg} is passed, it will included before the traceback.
    """
    if logger is None:
        logger = logging
    logger.error(msg, exc_info=(failure.type, failure.value, failure.tb))