Skip to content
Snippets Groups Projects
Commit f950620e authored by Benjamin Bayart's avatar Benjamin Bayart
Browse files

Garder les logs des crashs ssh dans les log, et pas sur stdout

parent dda562ab
No related branches found
Tags v0.2.9
1 merge request!130Garder les logs des crashs ssh dans les log, et pas sur stdout
Pipeline #86380 canceled
......@@ -186,6 +186,8 @@ class OxCluster():
log.debug("Now proc is ended")
if not proc.returncode == 0:
print(f"stderr:\n{err}")
log.error(f"Failed to run ssh command {command} on host {self.hostname} for csv")
log.error(f"Stderr:\n{err}")
raise Exception("Failed to call ssh")
log.debug(f"Returning {len(data)} item(s)")
......@@ -215,6 +217,9 @@ class OxCluster():
log.debug("Now proc is ended")
if not proc.returncode == 0:
print(f"stderr:\n{err}")
log.error(f"Failed to run ssh command {command} on host {self.hostname} for item")
log.error(f"Stderr:\n{err}")
log.error(f"Stdout;\n{text}")
raise Exception("Failed to call ssh")
log.debug(f"Command success... {command[0]}")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment