Skip to content

Commit 303430c

Browse files
authored
Fix incorrect unload log message in C# SDK (#609)
## Summary Fixes an incorrect informational log message in the C# SDK's web unload path. ## Changes - Updated `WebUnloadModelAsync` in `sdk/cs/src/Detail/ModelLoadManager.cs` - Changed the success log text from "loaded successfully" to "unloaded successfully" ## Why Consumers of `sdk/cs` provide their own `ILogger`, so this message is surfaced in their application logs. The old text was misleading and could cause confusion during debugging and support investigations.
1 parent d1cf434 commit 303430c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/cs/src/Detail/ModelLoadManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ private async Task WebUnloadModelAsync(string modelId, CancellationToken? ct = n
157157
}
158158

159159
var content = await response.Content.ReadAsStringAsync(ct ?? CancellationToken.None).ConfigureAwait(false);
160-
_logger.LogInformation("Model {ModelId} loaded successfully from {WebService}: {Message}",
160+
_logger.LogInformation("Model {ModelId} unloaded successfully from {WebService}: {Message}",
161161
modelId, _externalServiceUrl, content);
162162
}
163163

0 commit comments

Comments
 (0)