Commit 31e1037f authored by jvoisin's avatar jvoisin

Enhance CLI's error display by tweaking log level

parent ca83fc09
......@@ -291,7 +291,7 @@ class TarStripper(GenericArchiveStripper):
elif isinstance(cfile, GenericArchiveStripper):
ret_list.append(item.name)
else:
logging.error("%s's format is not supported or harmless", item.name)
logging.info("%s's format is not supported or harmless", item.name)
if os.path.splitext(path)[1] not in parser.NOMETA:
if not list_unsupported:
return False
......@@ -317,7 +317,7 @@ class TarStripper(GenericArchiveStripper):
if meta:
current_meta['file'] = str(meta)
else:
logging.error("%s's format is not supported or harmless", item.name)
logging.info("%s's format is not supported or harmless", item.name)
if not self.is_file_clean(item): # if there is meta
current_meta['mtime'] = item.mtime
......
......@@ -16,7 +16,7 @@ __version__ = '0.5.4'
__author__ = 'jvoisin'
# Silence
LOGGING_LEVEL = logging.CRITICAL
LOGGING_LEVEL = logging.ERROR
fname = ''
# Verbose
......
......@@ -27,19 +27,19 @@ pdfSupport = True
try:
from gi.repository import Poppler
except ImportError:
logging.info('Unable to import Poppler: no PDF support')
logging.error('Unable to import Poppler: no PDF support')
pdfSupport = False
try:
import cairo
except ImportError:
logging.info('Unable to import python-cairo: no PDF support')
logging.error('Unable to import python-cairo: no PDF support')
pdfSupport = False
try:
import pdfrw
except ImportError:
logging.info('Unable to import python-pdfrw: no PDf support')
logging.error('Unable to import python-pdfrw: no PDf support')
pdfSupport = False
if pdfSupport:
......@@ -56,7 +56,7 @@ try:
STRIPPERS['audio/ogg'] = mutagenstripper.OggStripper
STRIPPERS['audio/mpeg'] = mutagenstripper.MpegAudioStripper
except ImportError:
logging.info('Unable to import python-mutagen: limited audio format support')
logging.error('Unable to import python-mutagen: limited audio format support')
# exiftool
try:
......@@ -66,4 +66,4 @@ try:
STRIPPERS['image/png'] = exiftool.PngStripper
STRIPPERS['image/tiff'] = exiftool.TiffStripper
except OSError:
logging.info('Unable to find exiftool: limited images support')
logging.error('Unable to find exiftool: limited images support')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment