just added __name__ to the logger

This commit is contained in:
Johannes Findeisen 2013-10-01 02:03:14 +02:00
commit a6b956c983

View file

@ -46,7 +46,7 @@ def setupLogging(logfile="./log/linspector.log", logLevel=logging.DEBUG, logfile
if not path.exists(path.dirname(logfile)): if not path.exists(path.dirname(logfile)):
os.makedirs(path.dirname(logfile)) os.makedirs(path.dirname(logfile))
log = logging.getLogger("LinspectorLogger") log = logging.getLogger(__name__)
log.setLevel(logging.DEBUG) log.setLevel(logging.DEBUG)
consoleHandler = logging.StreamHandler() consoleHandler = logging.StreamHandler()