projects
/
osm
/
UI.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "NOTICKET: Refactor with sessions. Now holds auth on server" into projects
[osm/UI.git]
/
skyquake
/
plugins
/
logging
/
api
/
transforms.js
diff --git
a/skyquake/plugins/logging/api/transforms.js
b/skyquake/plugins/logging/api/transforms.js
index
eb17b7a
..
301b1eb
100644
(file)
--- 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");
* 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
*/
* Class to convert RESTConf data to logging plugin
*/
-
+var LoggingConfigDecoder = {};
+var LoggingConfigEncoder = {};
LoggingConfigDecoder = function(debugMode) {
this.debugMode = debugMode || false
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) {
* 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;
return { duplicate: "events" };
} else {
return null;