From 0616eee2f74c76b9931c17f5c797727aae0c856a Mon Sep 17 00:00:00 2001 From: Lukas Ruzicka Date: Jul 10 2019 08:40:45 +0000 Subject: Add loggin support. --- diff --git a/modular_functions.py b/modular_functions.py index 6baffa7..a2dda4e 100755 --- a/modular_functions.py +++ b/modular_functions.py @@ -491,6 +491,8 @@ class ModuleTest: self.overall['reset'] = 'fail' def switch_stream(self, module, oldstr, newstr): + """Tests switching the stream""" + # Currently this method is not used, because it is outdated. print('-------- Switching streams ---------') oldkey = f"{module}:{oldstr}" newkey = f"{module}:{newstr}" @@ -546,7 +548,8 @@ class ModuleTest: nodefaults.append(f"{module}: {result}") else: result = 'Passed.' - print(f"{module}: {result}") + print(f"Tested module: {module}, Result: {result}") + logging.info(f"Tested module: {module}, Result: {result}") print(f"There were altogether {len(nodefaults)} incomplete modules.")