Skip to content

Commit

Permalink
Catch all errors to prevent crashes in case of connection loss
Browse files Browse the repository at this point in the history
  • Loading branch information
SoerenBusse committed Aug 14, 2022
1 parent f063b35 commit 81537a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SolarLogExporter/Services/SolarLogPollingService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ private async Task Update()
await _influxService.PushSolarLogMeasurement(_solarLogService.SolarLogMeasurement);
}
}
catch (ReadProductionException e)
catch (Exception e)
{
_logger.LogError(e.Message);
}
Expand Down

0 comments on commit 81537a5

Please sign in to comment.