mirror of
https://github.com/AlexMacocian/ServerManagementUtils.git
synced 2026-07-15 15:19:58 +00:00
Small fix
This commit is contained in:
@@ -91,8 +91,10 @@ public sealed class MonitoringService(
|
|||||||
}
|
}
|
||||||
|
|
||||||
using var reader = new StreamReader(fs);
|
using var reader = new StreamReader(fs);
|
||||||
var line = string.Empty;
|
while (
|
||||||
while ((line = await reader.ReadLineAsync(cancellationToken))?.IsNullOrEmpty() is false)
|
(await reader.ReadLineAsync(cancellationToken)) is string line
|
||||||
|
&& !line.IsNullOrEmpty()
|
||||||
|
)
|
||||||
{
|
{
|
||||||
scopedLogger.LogDebug("Read line: {line}", line);
|
scopedLogger.LogDebug("Read line: {line}", line);
|
||||||
//TODO: Publish to IPublishingService
|
//TODO: Publish to IPublishingService
|
||||||
|
|||||||
Reference in New Issue
Block a user