Permalink
Browse files

RFC5424 messages have the "type" field supplied.

  • Loading branch information...
squeeks committed Mar 8, 2013
1 parent 19c6b6e commit 15264378e82125d92052ae69a61482223079a823
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/glossy/parse.js
View
@@ -130,6 +130,7 @@ GlossyParser.prototype.parse = function(rawMessage, callback) {
if(segments[0].match(/^(<\d+>\d)$/)) {
segments.shift(); // Shift the prival off
var timeStamp = segments.shift();
+ parsedMessage.type = 'RFC5424';
parsedMessage.time = this.parseTimeStamp(timeStamp);
parsedMessage.host = this.decideValue(segments.shift());
parsedMessage.appName = this.decideValue(segments.shift());

0 comments on commit 1526437

Please sign in to comment.