GUACAMOLE-2181: Rely on automatic stack traces for debug-level logs.
This commit is contained in:
44 files changed
+152
-243
No files matched your search
+5
-8
@@ -155,15 +155,12 @@ public class KsmAttributeService implements VaultAttributeService {
|
||||
|
||||
catch (GuacamoleException e) {
|
||||
|
||||
logger.warn(
|
||||
"Unable to determine if KSM user attributes "
|
||||
+ "should be exposed due to config parsing error: {}.", e.getMessage());
|
||||
logger.debug(
|
||||
"Config parsing error prevented checking user attribute configuration",
|
||||
e);
|
||||
|
||||
// If the configuration can't be parsed, default to not exposing the attributes
|
||||
// If the configuration can't be parsed, default to not exposing
|
||||
// the attributes
|
||||
logger.warn("Unable to determine if KSM user attributes should be "
|
||||
+ "exposed due to config parsing error: {}.", e.getMessage(), e);
|
||||
return Collections.emptyList();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+1
-1
@@ -781,7 +781,7 @@ public class KsmClient {
|
||||
// Show the warning only if there is no fallback function
|
||||
// and this was the last attempt
|
||||
logger.warn("Keeper notation \"{}\" could not be resolved "
|
||||
+ "to a record: {}", notation, e.getMessage());
|
||||
+ "to a record: {}", notation, e.getMessage(), e);
|
||||
|
||||
return CompletableFuture.completedFuture(null);
|
||||
}
|
||||
|
||||
+5
-8
@@ -87,13 +87,10 @@ import com.google.inject.assistedinject.AssistedInject;
|
||||
boolean userKsmConfigEnabled = false;
|
||||
try {
|
||||
userKsmConfigEnabled = configurationService.getAllowUserConfig();
|
||||
} catch (GuacamoleException e) {
|
||||
|
||||
logger.warn(
|
||||
"Disabling user KSM config due to exception: {}"
|
||||
, e.getMessage());
|
||||
logger.debug("Error looking up if user KSM config is enabled.", e);
|
||||
|
||||
}
|
||||
catch (GuacamoleException e) {
|
||||
logger.warn("Disabling user KSM config due to exception: {}",
|
||||
e.getMessage(), e);
|
||||
}
|
||||
|
||||
// If user-specific KSM configuration is not enabled, do not expose the
|
||||
@@ -112,4 +109,4 @@ import com.google.inject.assistedinject.AssistedInject;
|
||||
return attributes;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user