Skip to content

Commit 1b4851d

Browse files
committed
extra logging
Signed-off-by: Neil South <neil.south@answerdigital.com>
1 parent d6920d7 commit 1b4851d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/WorkflowManager/Logging/Log.200000.Workflow.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,5 +108,8 @@ public static partial class Log
108108

109109
[LoggerMessage(EventId = 210007, Level = LogLevel.Information, Message = "Exporting to MIG task Id {taskid}, export destination {destination} number of files {fileCount} Mig data plugins {plugins}.")]
110110
public static partial void LogMigExport(this ILogger logger, string taskid, string destination, int fileCount, string plugins);
111+
112+
[LoggerMessage(EventId = 200018, Level = LogLevel.Error, Message = "ExportList or Artifacts are empty! workflowInstanceId {workflowInstanceId} TaskId {taskId}")]
113+
public static partial void ExportListOrArtifactsAreEmpty(this ILogger logger, string taskId, string workflowInstanceId);
111114
}
112115
}

src/WorkflowManager/WorkflowExecuter/Services/WorkflowExecuterService.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -685,6 +685,7 @@ private async Task HandleHl7ExportAsync(WorkflowRevision workflow, WorkflowInsta
685685

686686
if (exportList is null || artifactValues is null)
687687
{
688+
_logger.ExportListOrArtifactsAreEmpty(task.TaskId, workflowInstance.Id);
688689
return;
689690
}
690691

0 commit comments

Comments
 (0)