[Pkg-privacy-commits] [mat] 53/68: Enhance CLI's error display by tweaking log level
Sascha Steinbiss
sascha at steinbiss.name
Sun Jan 3 12:32:43 UTC 2016
This is an automated email from the git hooks/post-receive script.
sascha-guest pushed a commit to branch master
in repository mat.
commit 31e1037fb6cbc2ee68a7c10ba322922aafc0d5ae
Author: jvoisin <julien.voisin at dustri.org>
Date: Fri Dec 18 02:49:42 2015 +0100
Enhance CLI's error display by tweaking log level
---
libmat/archive.py | 4 ++--
libmat/mat.py | 2 +-
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):
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
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'
__author__ = 'jvoisin'
# Silence
-LOGGING_LEVEL = logging.CRITICAL
+LOGGING_LEVEL = logging.ERROR
fname = ''
# 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
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')
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/mat.git
More information about the Pkg-privacy-commits
mailing list