Skip to content

Commit

Permalink
Adding debug output to debug logging tests on sauce
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed Feb 27, 2013
1 parent a2f955b commit 930ad8d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions java/client/src/org/openqa/selenium/remote/RemoteLogs.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,14 @@ public LogEntries get(String logType) {
}

private LogEntries getRemoteEntries(String logType) {
System.out.println("Getting log " + logType);
Object raw = executeMethod.execute(DriverCommand.GET_LOG, ImmutableMap.of(TYPE_KEY, logType));
@SuppressWarnings("unchecked")
List<Map<String, Object>> rawList = (List<Map<String, Object>>) raw;
List<LogEntry> remoteEntries = Lists.newArrayListWithCapacity(rawList.size());

for (Map<String, Object> obj : rawList) {
System.out.println(obj);
remoteEntries.add(new LogEntry(LogLevelMapping.toLevel((String)obj.get(LEVEL)),
(Long) obj.get(TIMESTAMP),
(String) obj.get(MESSAGE)));
Expand Down

0 comments on commit 930ad8d

Please sign in to comment.