metron-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ceste...@apache.org
Subject incubator-metron git commit: METRON-254 pcap inspector emits fields that are named based on the enum, rather than the standardized field names. This closes apache/incubator-metron#171
Date Thu, 23 Jun 2016 21:21:21 GMT
Repository: incubator-metron
Updated Branches:
  refs/heads/master 2eea3790e -> ca4adc892


METRON-254 pcap inspector emits fields that are named based on the enum, rather than the standardized
field names. This closes apache/incubator-metron#171


Project: http://git-wip-us.apache.org/repos/asf/incubator-metron/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-metron/commit/ca4adc89
Tree: http://git-wip-us.apache.org/repos/asf/incubator-metron/tree/ca4adc89
Diff: http://git-wip-us.apache.org/repos/asf/incubator-metron/diff/ca4adc89

Branch: refs/heads/master
Commit: ca4adc8929cbf857d72e51abfb911c2c83ec3186
Parents: 2eea379
Author: cstella <cestella@gmail.com>
Authored: Thu Jun 23 17:21:01 2016 -0400
Committer: cstella <cestella@gmail.com>
Committed: Thu Jun 23 17:21:01 2016 -0400

----------------------------------------------------------------------
 .../src/main/java/org/apache/metron/utils/PcapInspector.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/ca4adc89/metron-platform/metron-pcap-backend/src/main/java/org/apache/metron/utils/PcapInspector.java
----------------------------------------------------------------------
diff --git a/metron-platform/metron-pcap-backend/src/main/java/org/apache/metron/utils/PcapInspector.java
b/metron-platform/metron-pcap-backend/src/main/java/org/apache/metron/utils/PcapInspector.java
index 661ab2f..ef11af8 100644
--- a/metron-platform/metron-pcap-backend/src/main/java/org/apache/metron/utils/PcapInspector.java
+++ b/metron-platform/metron-pcap-backend/src/main/java/org/apache/metron/utils/PcapInspector.java
@@ -149,7 +149,7 @@ public class PcapInspector {
         }};
         for(Constants.Fields field : Constants.Fields.values()) {
           if(result.containsKey(field)) {
-            fieldResults.add(field + ": " + result.get(field));
+            fieldResults.add(field.getName() + ": " + result.get(field));
           }
         }
         System.out.println(Joiner.on(",").join(fieldResults));


Mime
View raw message