From 81537a52cc4b21c1f53c7d864566f0726ed965bc Mon Sep 17 00:00:00 2001 From: Waishon Date: Sun, 14 Aug 2022 15:43:31 +0200 Subject: [PATCH] Catch all errors to prevent crashes in case of connection loss --- src/SolarLogExporter/Services/SolarLogPollingService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SolarLogExporter/Services/SolarLogPollingService.cs b/src/SolarLogExporter/Services/SolarLogPollingService.cs index f44f235..d80b23b 100644 --- a/src/SolarLogExporter/Services/SolarLogPollingService.cs +++ b/src/SolarLogExporter/Services/SolarLogPollingService.cs @@ -61,7 +61,7 @@ private async Task Update() await _influxService.PushSolarLogMeasurement(_solarLogService.SolarLogMeasurement); } } - catch (ReadProductionException e) + catch (Exception e) { _logger.LogError(e.Message); }