diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-02-07 18:55:33 -0600 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2026-02-07 18:55:33 -0600 |
| commit | 1aff04b696f30ffbca057a20f68fbd71246d6fbb (patch) | |
| tree | f5de15e8567481c23618ee265c6eaad2eda6cf96 /src/slskd/Integrations/VPN | |
| parent | 0f14c33d3d1682e235b6fe29a8bfe555e48a339f (diff) | |
| download | slskd-1aff04b696f30ffbca057a20f68fbd71246d6fbb.tar.gz | |
simplify logs
Diffstat (limited to 'src/slskd/Integrations/VPN')
| -rw-r--r-- | src/slskd/Integrations/VPN/GluetunClient.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/slskd/Integrations/VPN/GluetunClient.cs b/src/slskd/Integrations/VPN/GluetunClient.cs index 28fef202..2d1588dd 100644 --- a/src/slskd/Integrations/VPN/GluetunClient.cs +++ b/src/slskd/Integrations/VPN/GluetunClient.cs @@ -105,8 +105,8 @@ public class GluetunClient : IVPNClient } catch (Exception ex) { - Log.Warning("Failed to retrieve status from Gluetun: {Message}", ex.Message); - throw new VPNClientException($"Failed to retrieve status from Gluetun: {ex.Message}", ex); + Log.Debug("Failed to retrieve status from Gluetun: {Message}", ex.Message); + throw new VPNClientException(ex.Message, ex); } } @@ -116,7 +116,7 @@ public class GluetunClient : IVPNClient response.EnsureSuccessStatusCode(); var result = await response.Content.ReadFromJsonAsync<T>() - ?? throw new Exception($"Failed to deserialize Gluetun response; expected: {nameof(T)}, got: {await response.Content.ReadAsStringAsync()}"); + ?? throw new Exception($"Unexpected Gluetun response; expected: {nameof(T)}, got: {await response.Content.ReadAsStringAsync()}"); return result; } |
