NO TICKET: Check for loggingConfigEncoder.allow 61/561/1
authorLaurence Maultsby <laurence.maultsby@riftio.com>
Fri, 21 Oct 2016 18:16:57 +0000 (14:16 -0400)
committerLaurence Maultsby <laurence.maultsby@riftio.com>
Fri, 21 Oct 2016 18:17:04 +0000 (14:17 -0400)
Signed-off-by: Laurence Maultsby <laurence.maultsby@riftio.com>
skyquake/plugins/logging/api/transforms.js

index 5f65010..f4bfda6 100644 (file)
@@ -168,7 +168,7 @@ LoggingConfigEncoder.prototype.denyEvents = function(data) {
  * or absence of the { "allow": { "duplicate": "events" }} key/value hierarchy
  */
 LoggingConfigEncoder.prototype.allow = function(data) {
-  if (data.allowDuplicateEvents.toUpperCase() == "TRUE") {
+  if (data.allowDuplicateEvent && data.allowDuplicateEvents.toUpperCase() == "TRUE") {
     return { duplicate: "events" };
   } else {
     return null;