Skip to content

Cancelled requests are logged as errors #2625

Open
@gao-artur

Description

@gao-artur

This is a continuation of the issue #2466. The cancelled requests should be reported as info instead of error. It was fixed in one place, but there is another that reports an error because it doesn't handle the IOException:

catch (Exception ex) when (ex is not OperationCanceledException)
{
    // Don't write error when user cancels read
    GrpcServerLog.ErrorReadingMessage(logger, ex);
    throw;
}

What version of gRPC and what language are you using?

v2.67.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions