Skip to content

Commit

Permalink
[k8s] Fix RequestType display implementation that lead to crash with …
Browse files Browse the repository at this point in the history
…stack overflow (Azure#2523)

There was an error when iotedged tries to log an error with RequestType in context it calls display method via write!() macros that causes the stack to be overflown.
  • Loading branch information
dmolokanov authored Feb 13, 2020
1 parent 98b03d2 commit 9e65280
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion edgelet/kube-client/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,6 @@ pub enum RequestType {

impl Display for RequestType {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "{:#}", self)
write!(f, "{:?}", self)
}
}

0 comments on commit 9e65280

Please sign in to comment.