@ -1,5 +1,5 @@
@@ -1,5 +1,5 @@
/ *
* Copyright 2002 - 2018 the original author or authors .
* Copyright 2002 - 2019 the original author or authors .
*
* Licensed under the Apache License , Version 2 . 0 ( the "License" ) ;
* you may not use this file except in compliance with the License .
@ -182,7 +182,7 @@ public class InvocableHandlerMethod extends HandlerMethod {
@@ -182,7 +182,7 @@ public class InvocableHandlerMethod extends HandlerMethod {
try {
argMonos . add ( this . resolvers . resolveArgument ( parameter , message )
. defaultIfEmpty ( NO_ARG_VALUE )
. doOnError ( caus e - > logArgumentErrorIfNecessary ( parameter , caus e) ) ) ;
. doOnError ( ex - > logArgumentErrorIfNecessary ( parameter , ex ) ) ) ;
}
catch ( Exception ex ) {
logArgumentErrorIfNecessary ( parameter , ex ) ;
@ -190,15 +190,15 @@ public class InvocableHandlerMethod extends HandlerMethod {
@@ -190,15 +190,15 @@ public class InvocableHandlerMethod extends HandlerMethod {
}
}
return Mono . zip ( argMonos , values - >
Stream . of ( values ) . map ( o - > o ! = NO_ARG_VALUE ? o : null ) . toArray ( ) ) ;
Stream . of ( values ) . map ( value - > value ! = NO_ARG_VALUE ? value : null ) . toArray ( ) ) ;
}
private void logArgumentErrorIfNecessary ( MethodParameter parameter , Throwable caus e) {
// Leave stack trace for later, if error is not handled..
String caus eMes sa ge = caus e. getMessage ( ) ;
if ( ! caus eMes sa ge . contains ( parameter . getExecutable ( ) . toGenericString ( ) ) ) {
private void logArgumentErrorIfNecessary ( MethodParameter parameter , Throwable ex ) {
// Leave stack trace for later, if error is not handled...
String ex Msg = ex . getMessage ( ) ;
if ( ! ex Msg . contains ( parameter . getExecutable ( ) . toGenericString ( ) ) ) {
if ( logger . isDebugEnabled ( ) ) {
logger . debug ( formatArgumentError ( parameter , caus eMes sa ge ) ) ;
logger . debug ( formatArgumentError ( parameter , ex Msg ) ) ;
}
}
}