Skip to content

Commit

Permalink
Add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
tschumpr committed Apr 30, 2024
1 parent cb6eba9 commit c193c62
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Geodatenbezug/Processors/TopicProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ public async Task<ProcessingResult> ProcessAsync()
processingResult.Code = HttpStatusCode.OK;
processingResult.Reason = "Success";
processingResult.Info = "Data processed successfully";

logger.LogInformation($"Thema {topic.TopicTitle} ({topic.Canton}) erfolgreich verarbeitet. DownloadUrl: {processingResult.DownloadUrl}");
}
catch (Exception ex)
{
Expand Down Expand Up @@ -200,6 +202,7 @@ protected internal async Task RunGdalProcessingAsync()
InputDataSource = Ogr.Open(InputDataPath, 1);
if (InputDataSource == null)
{
logger.LogError($"Fehler beim Öffnen des Eingabedatensatzes {InputDataPath}");
throw new InvalidOperationException("Could not open input datasource.");
}

Expand Down

0 comments on commit c193c62

Please sign in to comment.