This file is indexed.

/usr/lib/python2.7/dist-packages/metastudentPkg/Logger.py is in metastudent 2.0.1-5.

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
20
21
22
23
24
25
26
27
28
29
30
31
# Written by Tobias Hamp <hampt@rostlab.org>
#
# Copyright (c) 2011-2012 Tobias Hamp <hampt@rostlab.org>



import logging
import sys
class Logger:
	
	internalLogger = None
	logFile = None

	def __init__(self, logfile=None):
		Logger.internalLogger = logging.getLogger('metastudent')
		#self.logFile = open(logfile, 'a')
#		hdlr = logging.FileHandler('/var/log/metatsudent.log')
#		formatter = logging.Formatter('%(asctime)s %(levelname)s %(message)s')
#		hdlr.setFormatter(formatter)
#		Logger.internalLogger.addHandler(hdlr) 
#		Logger.internalLogger.setLevel(logging.INFO)
	
	@classmethod
	def log(cls, msg, level=0):
		if level==0:
			print msg
		else:
			print >> sys.stderr,msg
		
		#cls.internalLogger.info(msg)