Skip to content

Commit

Permalink
Add some logging warnings about fallback mode
Browse files Browse the repository at this point in the history
  • Loading branch information
octol committed Oct 31, 2024
1 parent a60d4b3 commit 55d22ce
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ impl GatewayClient {
.collect();
Ok(GatewayList::new(gateways))
} else {
warn!("OPERATING IN FALLBACK MODE WITHOUT NYM-VPN-API!");
self.lookup_all_gateways_from_nym_api().await
}
}
Expand All @@ -296,6 +297,7 @@ impl GatewayClient {
.collect();
Ok(GatewayList::new(gateways))
} else {
warn!("OPERATING IN FALLBACK MODE WITHOUT NYM-VPN-API!");
self.lookup_gateways_from_nym_api(gw_type).await
}
}
Expand All @@ -310,6 +312,7 @@ impl GatewayClient {
.map(Country::from)
.collect())
} else {
warn!("OPERATING IN FALLBACK MODE WITHOUT NYM-VPN-API!");
self.lookup_gateways_from_nym_api(gw_type)
.await
.map(GatewayList::into_countries)
Expand Down

0 comments on commit 55d22ce

Please sign in to comment.