From ee96848dab8d7a53716475546df22f29a393fb70 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sun, 6 Nov 2011 23:15:19 +0100 Subject: Stupid typo --- mat-cli | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mat-cli b/mat-cli index fbcaa62..00c5c11 100755 --- a/mat-cli +++ b/mat-cli @@ -61,7 +61,7 @@ def display_version(*_): def list_meta(class_file, filename, force): ''' - Print all the metadataof 'filename' on stdout + Print all the metadata of 'filename' on stdout ''' print('[+] File %s :' % filename) if force is False and class_file.is_clean(): -- cgit v1.3 From fbc9d15115df53264ed06ff995c79ed745b7bcb8 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Thu, 17 Nov 2011 16:43:05 +0100 Subject: Fix a stupid typo --- mat/mat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mat/mat.py b/mat/mat.py index 248777e..2f487e9 100644 --- a/mat/mat.py +++ b/mat/mat.py @@ -73,7 +73,7 @@ def get_sharedir(): return '' elif os.path.exists('/usr/local/share/mat/'): return '/usr/local/share/mat/' - elif os.path.exist('/usr/share/mat/'): + elif os.path.exists('/usr/share/mat/'): return '/usr/share/mat' -- cgit v1.3 From 7c84e94f3c65f77c471c7dbce146bbbbb362054b Mon Sep 17 00:00:00 2001 From: jvoisin Date: Thu, 17 Nov 2011 18:54:11 +0100 Subject: Quiet the logging module --- mat/mat.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mat/mat.py b/mat/mat.py index 2f487e9..2c145b7 100644 --- a/mat/mat.py +++ b/mat/mat.py @@ -22,9 +22,10 @@ import misc __version__ = '0.1' __author__ = 'jvoisin' -LOGGING_LEVEL = logging.DEBUG +#LOGGING_LEVEL = logging.DEBUG +LOGGING_LEVEL = logging.CRITICAL -logging.basicConfig(level=LOGGING_LEVEL) +logging.basicConfig(filename='report.log', level=LOGGING_LEVEL) STRIPPERS = { 'application/x-tar': archive.TarStripper, -- cgit v1.3 From 8899af3e1e3a7d5e098feaaae824413fdc42da4a Mon Sep 17 00:00:00 2001 From: jvoisin Date: Thu, 17 Nov 2011 19:05:54 +0100 Subject: Hachoir's log are now quiet --- mat/mat.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mat/mat.py b/mat/mat.py index 2c145b7..9809c33 100644 --- a/mat/mat.py +++ b/mat/mat.py @@ -22,8 +22,13 @@ import misc __version__ = '0.1' __author__ = 'jvoisin' -#LOGGING_LEVEL = logging.DEBUG +#Silence LOGGING_LEVEL = logging.CRITICAL +hachoir_core.config.quiet = True + +#Verbose +#LOGGING_LEVEL = logging.DEBUG +#hachoir_core.config.quiet = False logging.basicConfig(filename='report.log', level=LOGGING_LEVEL) -- cgit v1.3 From f0e8e2d894ae4fcc6e0f87741dfb8511f52fc0c1 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Thu, 17 Nov 2011 19:07:18 +0100 Subject: Exiftool is now quiet too --- mat/exiftool.py | 4 ++-- mat/office.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mat/exiftool.py b/mat/exiftool.py index c6c1ada..758a094 100644 --- a/mat/exiftool.py +++ b/mat/exiftool.py @@ -33,14 +33,14 @@ class ExiftoolStripper(parser.GenericParser): try: if self.backup: # Note: '-All=' must be followed by a known exiftool option. - process = subprocess.Popen(['exiftool', '-All=', + process = subprocess.Popen(['exiftool', '-m', '-All=', '-out', self.output, self.filename], stdout=open('/dev/null')) process.wait() else: # Note: '-All=' must be followed by a known exiftool option. process = subprocess.Popen( - [ 'exiftool', '-All=', '-overwrite_original', self.filename ], + [ 'exiftool', '-m', '-All=', '-overwrite_original', self.filename ], stdout=open('/dev/null')) process.wait() return True diff --git a/mat/office.py b/mat/office.py index 41411c7..d1e781e 100644 --- a/mat/office.py +++ b/mat/office.py @@ -188,7 +188,7 @@ class PdfStripper(parser.GenericParser): import exiftool # Note: '-All=' must be followed by a known exiftool option. if self.backup: - process = subprocess.Popen(['exiftool', '-All=', + process = subprocess.Popen(['exiftool', '-m', '-All=', '-out', self.output, self.filename], stdout=open('/dev/null')) process.wait() else: -- cgit v1.3