Skip to content

Commit

Permalink
internal proxy now explicitly logs exit errors
Browse files Browse the repository at this point in the history
  • Loading branch information
aviramha committed Sep 30, 2024
1 parent bddf4c3 commit 9daf757
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.d/+add-exit-error.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
internal proxy now logs exit error explicitly
3 changes: 3 additions & 0 deletions mirrord/cli/src/internal_proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ pub(crate) async fn proxy(watch: drain::Watch) -> Result<(), InternalProxyError>
.run(first_connection_timeout, consecutive_connection_timeout)
.await
.map_err(InternalProxyError::from)
.inspect_err(|e| {
tracing::error!("internal proxy exiting: {e:?}");
})
}

/// Creates a connection with the agent and handles one round of ping pong.
Expand Down

0 comments on commit 9daf757

Please sign in to comment.