[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".
--- 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()