Skip to content
Browse files

log source of event

  • Loading branch information...
1 parent 84f924a commit 3f9addc07139d85a0534e443424c6e480b023a97 @benlemasurier committed Sep 16, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 blode.js
View
2 blode.js
@@ -52,6 +52,7 @@ http.createServer(function(request, response) {
var log = request.extract_message();
log_buffer.id = Math.uuid();
+ log_buffer.source = rinfo.address;
log_buffer.severity = log.severity;
log_buffer.message = log.message;
@@ -75,6 +76,7 @@ udp_server.on("message", function (message, rinfo) {
try {
var log = JSON.parse(message);
log_buffer.id = Math.uuid();
+ log_buffer.source = rinfo.address;
log_buffer.severity = log.severity;
log_buffer.message = log.message;

0 comments on commit 3f9addc

Please sign in to comment.
Something went wrong with that request. Please try again.