File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
arex-instrumentation-api/src/main/java/io/arex/inst/runtime/util Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -252,11 +252,11 @@ public static void saveRemainCompareResult(ArexContext context) {
252252 String recordMsg = getCompareMessage (cachedMocker );
253253 ReplayCompareResultDTO callMissingDTO = convertCompareResult (cachedMocker , recordMsg ,
254254 null , cachedMocker .getCreationTime (), Long .MAX_VALUE , false );
255- replayCompareResultQueue .offer (callMissingDTO );
255+ boolean success = replayCompareResultQueue .offer (callMissingDTO );
256256 // log call missing
257257 String message = StringUtil .format ("%s %n%s" ,
258258 "match fail, reason: call missing" , cachedMocker .logBuilder ().toString ());
259- if (Config .get ().isEnableDebug ()) {
259+ if (success && Config .get ().isEnableDebug ()) {
260260 message += StringUtil .format ("%ncall missing mocker: %s" , Serializer .serialize (cachedMocker ));
261261 }
262262 LogManager .info (context , ArexConstants .MATCH_LOG_TITLE , message );
You can’t perform that action at this time.
0 commit comments