Skip to content

Commit

Permalink
add log info that informs about disconnecting from core gRPC endpoint (
Browse files Browse the repository at this point in the history
…#109)

* add log info that informs about disconnecting from core gRPC endpoint

* fix format issue

* Update src/gateway.rs

Co-authored-by: Aleksander <[email protected]>

---------

Co-authored-by: Aleksander <[email protected]>
  • Loading branch information
cpprian and t-aleksander authored Aug 9, 2024
1 parent f591e4d commit a9224d5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gateway.rs
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,10 @@ impl Gateway {
updates_stream = self.connect(client.clone()).await?;
}
Err(err) => {
error!(
"Disconnected from defguard gRPC endoint: {:?}",
self.config.grpc_url
);
error!("Server error {err}, reconnecting");
updates_stream = self.connect(client.clone()).await?;
}
Expand Down

0 comments on commit a9224d5

Please sign in to comment.