[narval] remove broken test_print_log method
authorJulien Cristau <julien.cristau@logilab.fr>
Mon, 07 Jul 2014 18:48:43 +0200
changeset 1541 a48ad903f660
parent 1540 b3782475e2cd
child 1547 9012705e9076
[narval] remove broken test_print_log method lgp says "a build log is available at $path" before that's true (it only copies it there afterwards), so we always said "$path not found".
_narval/checkers/apycot/lgp.py
--- a/_narval/checkers/apycot/lgp.py	Fri Jun 20 16:13:28 2014 +0200
+++ b/_narval/checkers/apycot/lgp.py	Mon Jul 07 18:48:43 2014 +0200
@@ -23,17 +23,6 @@
         self.path = None
         self.status = apycot.SUCCESS
 
-    def test_print_log(self, f, message):
-        if ".log" in message:
-            for filename in message.split(' '):
-                if filename.endswith('.log'):
-                    if os.path.isfile(filename):
-                        log_file = open(filename, 'r')
-                        f('printing {0}: '.format(filename), path=self.path)
-                        f(''.join(list(log_file)), path=self.path)
-                    else:
-                        f('{0} not found '.format(filename), path=self.path)
-
     def emit(self, record):
         if record.levelno >= logging.CRITICAL:
             f = self.writer.fatal
@@ -49,7 +38,6 @@
             f = self.writer.debug
         message = record.getMessage()
         f(message, path=self.path)
-        self.test_print_log(f, message)
         self.writer.refresh_log()