mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
Removed unnecessary logs
This commit is contained in:
parent
8e32f3e478
commit
c6a25475b0
@ -25,7 +25,6 @@ var deviceModule = require("/modules/device.js");
|
||||
|
||||
if (uri != null) {
|
||||
var uriMatcher = new URIMatcher(callPath);
|
||||
log.info(callPath);
|
||||
if (uriMatcher.match("devices/mobile/{type}/{deviceid}/")) {
|
||||
var deviceId = uriMatcher.elements().deviceid;
|
||||
var type = uriMatcher.elements().type;
|
||||
|
||||
@ -25,16 +25,12 @@ var deviceModule = require("/modules/device.js");
|
||||
|
||||
if (uri != null) {
|
||||
var uriMatcher = new URIMatcher(callPath);
|
||||
//log.info(callPath);
|
||||
log.info(uriMatcher.match("operation/{type}/{deviceid}/{operation}"));
|
||||
if (uriMatcher.match("operation/{type}/{deviceid}/{operation}")) {
|
||||
|
||||
var deviceId = uriMatcher.elements().deviceid;
|
||||
var type = uriMatcher.elements().type;
|
||||
var operation = uriMatcher.elements().operation;
|
||||
var result = deviceModule.performOperation(deviceId, operation,[],type);
|
||||
<!--log.info(result);-->
|
||||
<!--print(result);-->
|
||||
}
|
||||
}
|
||||
%>
|
||||
@ -17,7 +17,6 @@
|
||||
*/
|
||||
//Init js to execute
|
||||
var logger = new Log();
|
||||
logger.debug("running debug");
|
||||
var app_TENANT_CONFIGS = 'tenant.configs';
|
||||
var app_carbon = require('carbon');
|
||||
var app_configs = {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user