GUACAMOLE-641: Log possible ambiguous record retrievals at debug level.

This commit is contained in:
Michael Jumper
2022-01-21 15:23:41 -08:00
parent c5ae027225
commit 62863f8a0b

View File

@@ -387,8 +387,12 @@ public class KsmClient {
cacheLock.readLock().lock(); cacheLock.readLock().lock();
try { try {
if (cachedAmbiguousHosts.contains(hostname)) if (cachedAmbiguousHosts.contains(hostname)) {
logger.debug("The hostname/address \"{}\" is referenced by "
+ "multiple Keeper records and cannot be used to "
+ "locate individual secrets.", hostname);
return null; return null;
}
return cachedRecordsByHost.get(hostname); return cachedRecordsByHost.get(hostname);
@@ -417,8 +421,12 @@ public class KsmClient {
cacheLock.readLock().lock(); cacheLock.readLock().lock();
try { try {
if (cachedAmbiguousUsernames.contains(username)) if (cachedAmbiguousUsernames.contains(username)) {
logger.debug("The username \"{}\" is referenced by multiple "
+ "Keeper records and cannot be used to locate "
+ "individual secrets.", username);
return null; return null;
}
return cachedRecordsByUsername.get(username); return cachedRecordsByUsername.get(username);