diff options
author | Marco Capitani <[email protected]> | 2018-02-21 16:28:00 +0100 |
---|---|---|
committer | Marco Capitani <[email protected]> | 2018-02-27 17:04:45 +0100 |
commit | aa84cc4b433818eb523c77350733c9fdb6e1efb3 (patch) | |
tree | 851ff62b759e2267f8b8f6838daff21c2f5284f5 | |
parent | e6af5e64b850be64d5e1d1012e890ca9571b0df0 (diff) | |
download | rumba-aa84cc4b433818eb523c77350733c9fdb6e1efb3.tar.gz rumba-aa84cc4b433818eb523c77350733c9fdb6e1efb3.zip |
utils: added prototype log retrieval
-rw-r--r-- | rumba/utils.py | 7 |
1 files changed, 6 insertions, 1 deletions
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 "" |