Skip to content

Commit 582b9ab

Browse files
Extra logging
1 parent 2988ed1 commit 582b9ab

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/org/appdynamics/appdrestapi/RESTAccess.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -539,12 +539,16 @@ public Events getEvents(String application, String eventTypes, String severities
539539
try{
540540
return RESTExecuter.executeEvents(auth, EventsQuery.queryPolicyViolationsSFromApps(baseURL.getControllerURL(), application, eventTypes, severities, start, end));
541541
}catch(Exception e){
542-
logger.log(Level.SEVERE,new StringBuilder().append("Exception occurred executing REST query::\n").append(e.getMessage()).append("\n").toString());
542+
StringBuilder bud = new StringBuilder();
543+
bud.append("\nApplication::").append(application).append("\nEventTypes::").append(eventTypes);
544+
bud.append("\nSeverities::").append(severities).append("\nStartTime::").append(start);
545+
bud.append("\nEndTime::").append(end);
546+
logger.log(Level.SEVERE,new StringBuilder().append("Exception occurred executing REST query::\n").append(e.getMessage()).append(bud.toString()).toString());
543547
}
544548
return null;
545549
}
546550

547-
/**
551+
/**
548552
* Returns MetricData that can be parsed
549553
* Case statement to determine Query string. Possible Results
550554
* @param queryIndex Index of the type of query to run

0 commit comments

Comments
 (0)