in src/Azure.AppService.Tunnel/Agent/DebuggerAgentProcess.cs [92:105]
private async Task WriteOutputToLogger(Lifetime lifetime, StreamReader stream, Action<string> logAction)
{
try
{
while (await stream.ReadLineAsync() is { } line && lifetime.IsAlive)
{
logAction(line);
}
}
catch (Exception exception)
{
_logger.Error(exception);
}
}