File tree 1 file changed +11
-1
lines changed
src/org/appdynamics/appdrestapi/resources 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -315,7 +315,11 @@ public static Events executeEvents(RESTAuth auth, String query){
315
315
316
316
317
317
if (s .debugLevel > 1 ) logger .log (Level .INFO ,new StringBuilder ().append ("Query:\n " ).append (query ).toString ());
318
+
318
319
WebResource service = client .resource (query );
320
+
321
+ if (s .debugLevel > 1 ) logger .log (Level .INFO ,new StringBuilder ().append ("WebResource: " ).append (service .toString ()).toString ());
322
+
319
323
ClientResponse response = null ;
320
324
Events evs =null ;
321
325
try {
@@ -328,12 +332,18 @@ public static Events executeEvents(RESTAuth auth, String query){
328
332
.append (response .getStatus ()).toString ());
329
333
}
330
334
331
- if (s .debugLevel > 1 && evs != null ){
335
+ if (s .debugLevel > 1 ) logger .log (Level .INFO ,new StringBuilder ().append ("\n We executed the whole query without exception" ).toString ());
336
+
337
+ if (s .debugLevel > 1 && evs != null ){
332
338
logger .log (Level .INFO ,new StringBuilder ().append ("Number of events returns is " ).append (evs .getEvents ().size ()).toString ());
333
339
}
334
340
341
+ if (s .debugLevel > 1 ) logger .log (Level .INFO ,new StringBuilder ().append ("\n First debug message was executed. " ).toString ());
342
+
335
343
if (s .debugLevel > 2 && evs != null ) logger .log (Level .FINE ,new StringBuilder ().append (evs .toString ()).toString ());
336
344
345
+ if (s .debugLevel > 1 ) logger .log (Level .INFO ,new StringBuilder ().append ("\n Past the debug stuff, returning. " ).toString ());
346
+
337
347
return evs ;
338
348
}
339
349
You can’t perform that action at this time.
0 commit comments