diff options
| author | jvoisin | 2011-12-05 16:48:59 +0100 |
|---|---|---|
| committer | jvoisin | 2011-12-05 16:48:59 +0100 |
| commit | 52fef0b1682057f6c34ecf373bdf545e3e3c0217 (patch) | |
| tree | af5b3b2123f51ed10ac3cbb97959690da22993bf | |
| parent | 338324eeb54806bc7b55e78e35c6831f8dfad8a7 (diff) | |
Silence for the logger
| -rw-r--r-- | mat/mat.py | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -21,12 +21,14 @@ __author__ = 'jvoisin' | |||
| 21 | #Silence | 21 | #Silence |
| 22 | LOGGING_LEVEL = logging.CRITICAL | 22 | LOGGING_LEVEL = logging.CRITICAL |
| 23 | hachoir_core.config.quiet = True | 23 | hachoir_core.config.quiet = True |
| 24 | fname = '' | ||
| 24 | 25 | ||
| 25 | #Verbose | 26 | #Verbose |
| 26 | #LOGGING_LEVEL = logging.DEBUG | 27 | #LOGGING_LEVEL = logging.DEBUG |
| 27 | #hachoir_core.config.quiet = False | 28 | #hachoir_core.config.quiet = False |
| 29 | #logname = 'report.log' | ||
| 28 | 30 | ||
| 29 | logging.basicConfig(filename='report.log', level=LOGGING_LEVEL) | 31 | logging.basicConfig(filename=fname, level=LOGGING_LEVEL) |
| 30 | 32 | ||
| 31 | 33 | ||
| 32 | def get_sharedir(): | 34 | def get_sharedir(): |
