/*
- *
+ *
* Copyright 2016 RIFT.IO Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* limitations under the License.
*
*/
+'use strict';
var Promise = require('bluebird');
var utils = require('../../../framework/core/api_utils/utils.js');
var request = utils.request;
var constants = require('../../../framework/core/api_utils/constants.js');
var _ = require('lodash');
-var APIVersion = '/v1';
+var APIVersion = '/v2';
var transforms = require('./transforms.js');
var foreverOn = true;
// Do nothing to test delay in response
var encoder = new transforms.LoggingConfigEncoder();
var data = encoder.encode(req.body);
- //console.log("Aggregate.set. encoded data=");
- //console.log(data);
+ // console.log("Aggregate.set. encoded data=");
+ // console.log(data);
// dumpLoggingConfig(data);
-
- return handlePutRequest(req, APIVersion + '/api/config/logging', data);
+ let setData = {
+ 'rwlog-mgmt:logging' : data
+ }
+ return handlePutRequest(req, APIVersion + '/api/config/logging', setData);
// if (this.mockResponse['set']) {
// return handleMockResponse(req, true, 201, data, delay=100);
// }
// Operational calls
Operational.get = function(req) {
+ var APIVersion = '/v1'
return handleGetRequest(req, APIVersion + '/api/operational/logging?deep',
transformLoggingRootResponseCallback
);