Skip to content
Snippets Groups Projects
Commit 0781fe01 authored by abat's avatar abat
Browse files

Merge into master from pull request #3696:

adding an id to debug events show output (https://github.com/bigswitch/bigswitchcontroller/pull/3696)
parents 49e3a013 a448f47b
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