This file is indexed.

/usr/lib/python2.7/dist-packages/tomahawk/log.py is in python-tomahawk 0.7.1-1.

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
15
16
17
18
19
import logging
import sys

def create_logger(file_path = None, debug_enabled = False, deep_debug_enabled = False):
    level = logging.INFO
    if debug_enabled:
        level = logging.DEBUG
    if deep_debug_enabled:
        format = "[%(levelname)s] %(filename)s:%(lineno)d %(message)s"
    else:
        format = "[%(levelname)s] %(message)s"

    kwargs = { 'level': level, 'format': format }
    if file_path:
        kwargs['filename'] = file_path
    else:
        kwargs['stream'] = sys.stdout
    logging.basicConfig(**kwargs)
    return logging