Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-7919

Imporove logging for ExternalLoginModule.java

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Resolved
    • None
    • None
    • auth-external
    • None

    Description

      It would be nice to improve the logging in the ExternalLoginModule.java class

      In particular IMHO it would be better to increase the log level in this snippet

              } catch (LoginException e) {
                  log.debug("IDP {} throws login exception for '{}': {}", idp.getName(), logId, e.getMessage());
                  throw e;
              } catch (Exception e) {
                  log.debug("SyncHandler {} throws sync exception for '{}'", syncHandler.getName(), logId, e);
                  LoginException le = new LoginException("Error while syncing user.");
                  le.initCause(e);
                  throw le;
              }

      See https://github.com/apache/jackrabbit-oak/blob/trunk/oak-auth-external/src/main/java/org/apache/jackrabbit/oak/spi/security/authentication/external/impl/ExternalLoginModule.java#L254

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              asanso Antonio Sanso
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: