diff options
| author | jvoisin | 2015-12-18 02:49:42 +0100 |
|---|---|---|
| committer | jvoisin | 2015-12-18 02:49:42 +0100 |
| commit | 31e1037fb6cbc2ee68a7c10ba322922aafc0d5ae (patch) | |
| tree | d11f4ffde694af53aee2bb12a16914523032162c /libmat/strippers.py | |
| parent | ca83fc0927897db30ed0ad11d3d681c3bd90c715 (diff) | |
Enhance CLI's error display by tweaking log level
Diffstat (limited to '')
| -rw-r--r-- | libmat/strippers.py | 10 |
1 files changed, 5 insertions, 5 deletions
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') |
