diff options
| -rw-r--r-- | libmat/archive.py | 4 | ||||
| -rw-r--r-- | libmat/mat.py | 2 | ||||
| -rw-r--r-- | libmat/strippers.py | 10 |
3 files changed, 8 insertions, 8 deletions
diff --git a/libmat/archive.py b/libmat/archive.py index b635f99..61028ef 100644 --- a/libmat/archive.py +++ b/libmat/archive.py | |||
| @@ -291,7 +291,7 @@ class TarStripper(GenericArchiveStripper): | |||
| 291 | elif isinstance(cfile, GenericArchiveStripper): | 291 | elif isinstance(cfile, GenericArchiveStripper): |
| 292 | ret_list.append(item.name) | 292 | ret_list.append(item.name) |
| 293 | else: | 293 | else: |
| 294 | logging.error("%s's format is not supported or harmless", item.name) | 294 | logging.info("%s's format is not supported or harmless", item.name) |
| 295 | if os.path.splitext(path)[1] not in parser.NOMETA: | 295 | if os.path.splitext(path)[1] not in parser.NOMETA: |
| 296 | if not list_unsupported: | 296 | if not list_unsupported: |
| 297 | return False | 297 | return False |
| @@ -317,7 +317,7 @@ class TarStripper(GenericArchiveStripper): | |||
| 317 | if meta: | 317 | if meta: |
| 318 | current_meta['file'] = str(meta) | 318 | current_meta['file'] = str(meta) |
| 319 | else: | 319 | else: |
| 320 | logging.error("%s's format is not supported or harmless", item.name) | 320 | logging.info("%s's format is not supported or harmless", item.name) |
| 321 | 321 | ||
| 322 | if not self.is_file_clean(item): # if there is meta | 322 | if not self.is_file_clean(item): # if there is meta |
| 323 | current_meta['mtime'] = item.mtime | 323 | current_meta['mtime'] = item.mtime |
diff --git a/libmat/mat.py b/libmat/mat.py index 1dc51d9..e84c717 100644 --- a/libmat/mat.py +++ b/libmat/mat.py | |||
| @@ -16,7 +16,7 @@ __version__ = '0.5.4' | |||
| 16 | __author__ = 'jvoisin' | 16 | __author__ = 'jvoisin' |
| 17 | 17 | ||
| 18 | # Silence | 18 | # Silence |
| 19 | LOGGING_LEVEL = logging.CRITICAL | 19 | LOGGING_LEVEL = logging.ERROR |
| 20 | fname = '' | 20 | fname = '' |
| 21 | 21 | ||
| 22 | # Verbose | 22 | # Verbose |
diff --git a/libmat/strippers.py b/libmat/strippers.py index 5920c41..c170332 100644 --- a/libmat/strippers.py +++ b/libmat/strippers.py | |||
| @@ -27,19 +27,19 @@ pdfSupport = True | |||
| 27 | try: | 27 | try: |
| 28 | from gi.repository import Poppler | 28 | from gi.repository import Poppler |
| 29 | except ImportError: | 29 | except ImportError: |
| 30 | logging.info('Unable to import Poppler: no PDF support') | 30 | logging.error('Unable to import Poppler: no PDF support') |
| 31 | pdfSupport = False | 31 | pdfSupport = False |
| 32 | 32 | ||
| 33 | try: | 33 | try: |
| 34 | import cairo | 34 | import cairo |
| 35 | except ImportError: | 35 | except ImportError: |
| 36 | logging.info('Unable to import python-cairo: no PDF support') | 36 | logging.error('Unable to import python-cairo: no PDF support') |
| 37 | pdfSupport = False | 37 | pdfSupport = False |
| 38 | 38 | ||
| 39 | try: | 39 | try: |
| 40 | import pdfrw | 40 | import pdfrw |
| 41 | except ImportError: | 41 | except ImportError: |
| 42 | logging.info('Unable to import python-pdfrw: no PDf support') | 42 | logging.error('Unable to import python-pdfrw: no PDf support') |
| 43 | pdfSupport = False | 43 | pdfSupport = False |
| 44 | 44 | ||
| 45 | if pdfSupport: | 45 | if pdfSupport: |
| @@ -56,7 +56,7 @@ try: | |||
| 56 | STRIPPERS['audio/ogg'] = mutagenstripper.OggStripper | 56 | STRIPPERS['audio/ogg'] = mutagenstripper.OggStripper |
| 57 | STRIPPERS['audio/mpeg'] = mutagenstripper.MpegAudioStripper | 57 | STRIPPERS['audio/mpeg'] = mutagenstripper.MpegAudioStripper |
| 58 | except ImportError: | 58 | except ImportError: |
| 59 | logging.info('Unable to import python-mutagen: limited audio format support') | 59 | logging.error('Unable to import python-mutagen: limited audio format support') |
| 60 | 60 | ||
| 61 | # exiftool | 61 | # exiftool |
| 62 | try: | 62 | try: |
| @@ -66,4 +66,4 @@ try: | |||
| 66 | STRIPPERS['image/png'] = exiftool.PngStripper | 66 | STRIPPERS['image/png'] = exiftool.PngStripper |
| 67 | STRIPPERS['image/tiff'] = exiftool.TiffStripper | 67 | STRIPPERS['image/tiff'] = exiftool.TiffStripper |
| 68 | except OSError: | 68 | except OSError: |
| 69 | logging.info('Unable to find exiftool: limited images support') | 69 | logging.error('Unable to find exiftool: limited images support') |
