Skip to content

Errors is logged and thrown at the same time in AuthenticationResultSupplier resulting in handled exceptions still being logged as errors #662

@snussbaumer

Description

@snussbaumer

In AuthenticationResultSupplier, lines 98-99 we see :

    logException(ex);
    throw new CompletionException(ex);

logException can in certain cases log an error with clientApplication.log.error(logMessage, ex);

This means that even when the exception is properly handled by the calling code (which we do) there is still a remaining error in the logs.

We have this problem and people end up investigating an issue that is not there.

For the time being we completely disabled logging for ConfidentialClientApplication ... but it would be much preferable that the error log not be done at all (or at least that this logging could be disabled when building the ConfidentialClientApplication)

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementA request or suggestion to improve some aspect of the library

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Done (in PR or next release)

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions