Skip to content

Commit dd7c760

Browse files
author
Vladimir Kotal
committed
log more info during init() in plugins using whitelist
1 parent 1feb078 commit dd7c760

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

plugins/src/main/java/opengrok/auth/plugin/LdapAttrPlugin.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ private void init(Map<String, Object> parameters) {
110110
throw new IllegalArgumentException(String.format("Unable to read the file \"%s\"", filePath), e);
111111
}
112112

113-
LOGGER.log(Level.FINE, "LdapAttrPlugin plugin loaded with attr={0}, whitelist={1}, instance={2}",
114-
new Object[]{ldapAttr, filePath, ldapUserInstance});
113+
LOGGER.log(Level.FINE, "LdapAttrPlugin plugin loaded with attr={0}, whitelist={1} ({2} entries), " +
114+
"instance={3}", new Object[]{ldapAttr, filePath, whitelist.size(), ldapUserInstance});
115115
}
116116

117117
@Override

plugins/src/main/java/opengrok/auth/plugin/UserWhiteListPlugin.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ public void load(Map<String, Object> parameters) {
7474
} catch (IOException e) {
7575
throw new IllegalArgumentException(String.format("Unable to read the file \"%s\"", filePath), e);
7676
}
77+
78+
LOGGER.log(Level.FINE, "UserWhiteList plugin loaded with filePath={0} ({1} entries), fieldName={2}",
79+
new Object[]{filePath, whitelist.size(), fieldName});
7780
}
7881

7982
@Override

0 commit comments

Comments
 (0)