Skip to content

Commit 10a51a4

Browse files
committed
InvocableHandlerMethod logs argument resolution exceptions at debug level
Issue: SPR-12925
1 parent fac6399 commit 10a51a4

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

spring-messaging/src/main/java/org/springframework/messaging/handler/invocation/InvocableHandlerMethod.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2014 the original author or authors.
2+
* Copyright 2002-2015 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -128,8 +128,8 @@ private Object[] getMethodArgumentValues(Message<?> message, Object... providedA
128128
continue;
129129
}
130130
catch (Exception ex) {
131-
if (logger.isTraceEnabled()) {
132-
logger.trace(getArgumentResolutionErrorMessage("Error resolving argument", i), ex);
131+
if (logger.isDebugEnabled()) {
132+
logger.debug(getArgumentResolutionErrorMessage("Error resolving argument", i), ex);
133133
}
134134
throw ex;
135135
}

spring-web/src/main/java/org/springframework/web/method/support/InvocableHandlerMethod.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2014 the original author or authors.
2+
* Copyright 2002-2015 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -164,8 +164,8 @@ private Object[] getMethodArgumentValues(NativeWebRequest request, ModelAndViewC
164164
continue;
165165
}
166166
catch (Exception ex) {
167-
if (logger.isTraceEnabled()) {
168-
logger.trace(getArgumentResolutionErrorMessage("Error resolving argument", i), ex);
167+
if (logger.isDebugEnabled()) {
168+
logger.debug(getArgumentResolutionErrorMessage("Error resolving argument", i), ex);
169169
}
170170
throw ex;
171171
}

0 commit comments

Comments
 (0)