Skip to content

Commit

Permalink
operator(exec): log status code, reason for failure (#846)
Browse files Browse the repository at this point in the history
  • Loading branch information
vrmiguel authored Jun 17, 2024
1 parent 20b6be0 commit 0e29ac5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tembo-operator/src/exec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,13 @@ impl ExecCommand {
"Error executing command on pod: {:?}. response: {:?}",
self.pod_name, output
);

if let Some(reason) = &status.reason {
warn!(
"Reason for failed kube exec: {reason}, code {:?}",
status.code
);
}
debug!("Failed command: {:?}", command);
false
}
Expand Down

0 comments on commit 0e29ac5

Please sign in to comment.