ldap.Helper: Kill "assuming empty group membership" logspam
Change I75fd86fb9 added catching of AccountException and replaced the stack trace log with a warning: "Account <name> not found: assuming empty group membership" The intention was to prevent excessive logging, but these warnings themselves are filling up the log. Change-Id: Id52830dbcab1f7434960a47cb11e5e559a6f650a
This commit is contained in:
		@@ -224,8 +224,6 @@ import javax.security.auth.login.LoginException;
 | 
				
			|||||||
        try {
 | 
					        try {
 | 
				
			||||||
          account = findAccount(schema, ctx, username, false);
 | 
					          account = findAccount(schema, ctx, username, false);
 | 
				
			||||||
        } catch (AccountException e) {
 | 
					        } catch (AccountException e) {
 | 
				
			||||||
          LdapRealm.log.warn("Account " + username +
 | 
					 | 
				
			||||||
              " not found, assuming empty group membership");
 | 
					 | 
				
			||||||
          return Collections.emptySet();
 | 
					          return Collections.emptySet();
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
@@ -247,8 +245,6 @@ import javax.security.auth.login.LoginException;
 | 
				
			|||||||
        try {
 | 
					        try {
 | 
				
			||||||
          account = findAccount(schema, ctx, username, true);
 | 
					          account = findAccount(schema, ctx, username, true);
 | 
				
			||||||
        } catch (AccountException e) {
 | 
					        } catch (AccountException e) {
 | 
				
			||||||
          LdapRealm.log.warn("Account " + username +
 | 
					 | 
				
			||||||
              " not found, assuming empty group membership");
 | 
					 | 
				
			||||||
          return Collections.emptySet();
 | 
					          return Collections.emptySet();
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user