From 52fef0b1682057f6c34ecf373bdf545e3e3c0217 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Mon, 5 Dec 2011 16:48:59 +0100 Subject: Silence for the logger --- mat/mat.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mat/mat.py b/mat/mat.py index 7fab98c..dfd4c12 100644 --- a/mat/mat.py +++ b/mat/mat.py @@ -21,12 +21,14 @@ __author__ = 'jvoisin' #Silence LOGGING_LEVEL = logging.CRITICAL hachoir_core.config.quiet = True +fname = '' #Verbose #LOGGING_LEVEL = logging.DEBUG #hachoir_core.config.quiet = False +#logname = 'report.log' -logging.basicConfig(filename='report.log', level=LOGGING_LEVEL) +logging.basicConfig(filename=fname, level=LOGGING_LEVEL) def get_sharedir(): -- cgit v1.3