capturing exceptions from radio logger - some packet analyzers seems to be buggy
This commit is contained in:
parent
485ef0cd79
commit
1d13e93db7
1 changed files with 7 additions and 2 deletions
|
@ -549,8 +549,9 @@ public class RadioLogger extends VisPlugin {
|
|||
|
||||
private boolean analyzePacket(PacketAnalyzer.Packet packet, StringBuffer brief, StringBuffer verbose) {
|
||||
if (analyzers == null) return false;
|
||||
boolean analyze = true;
|
||||
while (analyze) {
|
||||
try {
|
||||
boolean analyze = true;
|
||||
while (analyze) {
|
||||
analyze = false;
|
||||
for (int i = 0; i < analyzers.size(); i++) {
|
||||
PacketAnalyzer analyzer = analyzers.get(i);
|
||||
|
@ -570,6 +571,10 @@ public class RadioLogger extends VisPlugin {
|
|||
}
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
logger.debug("Error when analyzing packet: " + e.getMessage(), e);
|
||||
return false;
|
||||
}
|
||||
return brief.length() > 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue