From aa84cc4b433818eb523c77350733c9fdb6e1efb3 Mon Sep 17 00:00:00 2001 From: Marco Capitani Date: Wed, 21 Feb 2018 16:28:00 +0100 Subject: utils: added prototype log retrieval --- rumba/utils.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/rumba/utils.py b/rumba/utils.py index 78a80aa..7e3ec80 100644 --- a/rumba/utils.py +++ b/rumba/utils.py @@ -92,6 +92,10 @@ class ExperimentManager(object): node.fetch_files(self.syslogs, node_dir, self.use_sudo) + def fetch_prototype_logs(self, node, node_dir): + node.fetch_files(self.experiment.prototype_logs, + node_dir, self.use_sudo) + def fetch_syslogs(self): local_dir = self.experiment.log_dir @@ -115,9 +119,10 @@ class ExperimentManager(object): os.mkdir(node_dir) try: fetching_function(node, node_dir) + self.fetch_prototype_logs(node, node_dir) except Exception as e: logger.warning( - 'Could not fetch syslogs of node %s. %s%s', + 'Could not fetch prototype logs of node %s. %s%s', node.name, type(e).__name__, (": " + str(e)) if str(e) != "" else "" -- cgit v1.2.3