X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=skyquake%2Fplugins%2Flogging%2Fapi%2Ftransforms.js;h=301b1eb32487c711d24496e61f78e273f4013131;hb=3d39b18290b9cb3e10c1a80d91ac4819e7c58474;hp=eb17b7abcda247e68fab8c6d4a520879f532073d;hpb=e29efc315df33d546237e270470916e26df391d6;p=osm%2FUI.git diff --git a/skyquake/plugins/logging/api/transforms.js b/skyquake/plugins/logging/api/transforms.js index eb17b7abc..301b1eb32 100644 --- a/skyquake/plugins/logging/api/transforms.js +++ b/skyquake/plugins/logging/api/transforms.js @@ -1,5 +1,5 @@ /* - * + * * Copyright 2016 RIFT.IO Inc * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -40,7 +40,8 @@ Support.severities = function() { * Class to convert RESTConf data to logging plugin */ - +var LoggingConfigDecoder = {}; +var LoggingConfigEncoder = {}; LoggingConfigDecoder = function(debugMode) { this.debugMode = debugMode || false @@ -168,7 +169,7 @@ LoggingConfigEncoder.prototype.denyEvents = function(data) { * or absence of the { "allow": { "duplicate": "events" }} key/value hierarchy */ LoggingConfigEncoder.prototype.allow = function(data) { - if (data.allowDuplicateEvents) { + if (data.allowDuplicateEvents && data.allowDuplicateEvents.toUpperCase() == "TRUE") { return { duplicate: "events" }; } else { return null;