Skip to content

Commit eba8bc7

Browse files
committed
change logging to have restored correlation Id
Signed-off-by: Neil South <[email protected]>
1 parent ae159ce commit eba8bc7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/InformaticsGateway/Services/Scp/ApplicationEntityHandler.cs

100644100755
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ public async Task<string> HandleInstanceAsync(DicomCStoreRequest request, string
115115

116116
var result = await _pluginEngine.ExecutePlugInsAsync(request.File, dicomInfo).ConfigureAwait(false);
117117

118+
using var scope = _logger.BeginScope(new LoggingDataDictionary<string, object>() { { "CorrelationId", dicomInfo.CorrelationId } });
119+
118120
dicomInfo = (result.Item2 as DicomFileStorageMetadata)!;
119121
var dicomFile = result.Item1;
120122
await dicomInfo.SetDataStreams(dicomFile, dicomFile.ToJson(_dicomJsonOptions, _validateDicomValueOnJsonSerialization), _options.Value.Storage.TemporaryDataStorage, _fileSystem, _options.Value.Storage.LocalTemporaryStoragePath).ConfigureAwait(false);
@@ -167,4 +169,4 @@ public void Dispose()
167169
GC.SuppressFinalize(this);
168170
}
169171
}
170-
}
172+
}

0 commit comments

Comments
 (0)