Skip to content

Commit

Permalink
Change error message to info when connection is closed by agent (#696)
Browse files Browse the repository at this point in the history
Closes #693 

Co-authored-by: Eyal Bukchin <[email protected]>
  • Loading branch information
eyalb181 and eyalb181 committed Nov 6, 2022
1 parent 6bc20f9 commit 3a9b521
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
### Fixed
- using gcloud auth for kubernetes. (mistakenly loaded layer into it)
- debugging Go on VSCode. We patch to use our own delivered delve.
- Changed layer not to crash when connection is closed by agent. Closed [#693](https://github.com/metalbear-co/mirrord/issues/693).

## 3.7.0

Expand Down
4 changes: 4 additions & 0 deletions mirrord/layer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,10 @@ async fn thread_loop(
Some(Ok(message)) => {
if let Err(err) = layer.handle_daemon_message(
message).await {
if let LayerError::SendErrorConnection(_) = err {
info!("Connection closed by agent");
continue;
}
error!("Error handling daemon message: {:?}", err);
break;
}
Expand Down

0 comments on commit 3a9b521

Please sign in to comment.