Skip to content
Snippets Groups Projects
Commit a448f47b authored by Saurav Das's avatar Saurav Das
Browse files

A small hack to add an id in the show output for debug events

parent a9e2550d
No related branches found
No related tags found
No related merge requests found
......@@ -406,10 +406,13 @@ public class DebugEvent implements IFloodlightModule, IDebugEventService {
if (eventId == null) return null;
DebugEventHistory de = allEvents[eventId];
if (de != null) {
int num = 1;
List<Map<String,String>> ret = new ArrayList<Map<String,String>>();
for (Event e : de.eventBuffer) {
ret.add(e.getFormattedEvent(de.einfo.eventClass,
de.einfo.moduleEventName));
Map<String, String> temp = e.getFormattedEvent(de.einfo.eventClass,
de.einfo.moduleEventName);
temp.put("#", String.valueOf(num++));
ret.add(temp);
}
return new DebugEventInfo(de.einfo, ret);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment