/usr/share/pyshared/ldap/logger.py is in python-ldap 2.4.10-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 | # -*- coding: utf-8 -*-
"""
Helper class for using logging as trace file object
"""
import logging
class logging_file_class:
def __init__(self,logging_level):
self._logging_level = logging_level
def write(self,msg):
logging.log(self._logging_level,msg[:-1])
logging_file_obj = logging_file_class(logging.DEBUG)
|