mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACAMOLE-641: Log possible ambiguous record retrievals at debug level.
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user