Removed unnecessary logs

revert-dabc3590
Dulitha Wijewantha 10 years ago
parent 8e32f3e478
commit c6a25475b0

@ -25,7 +25,6 @@ var deviceModule = require("/modules/device.js");
if (uri != null) { if (uri != null) {
var uriMatcher = new URIMatcher(callPath); var uriMatcher = new URIMatcher(callPath);
log.info(callPath);
if (uriMatcher.match("devices/mobile/{type}/{deviceid}/")) { if (uriMatcher.match("devices/mobile/{type}/{deviceid}/")) {
var deviceId = uriMatcher.elements().deviceid; var deviceId = uriMatcher.elements().deviceid;
var type = uriMatcher.elements().type; var type = uriMatcher.elements().type;

@ -25,16 +25,12 @@ var deviceModule = require("/modules/device.js");
if (uri != null) { if (uri != null) {
var uriMatcher = new URIMatcher(callPath); var uriMatcher = new URIMatcher(callPath);
//log.info(callPath);
log.info(uriMatcher.match("operation/{type}/{deviceid}/{operation}"));
if (uriMatcher.match("operation/{type}/{deviceid}/{operation}")) { if (uriMatcher.match("operation/{type}/{deviceid}/{operation}")) {
var deviceId = uriMatcher.elements().deviceid; var deviceId = uriMatcher.elements().deviceid;
var type = uriMatcher.elements().type; var type = uriMatcher.elements().type;
var operation = uriMatcher.elements().operation; var operation = uriMatcher.elements().operation;
var result = deviceModule.performOperation(deviceId, operation,[],type); var result = deviceModule.performOperation(deviceId, operation,[],type);
<!--log.info(result);-->
<!--print(result);-->
} }
} }
%> %>

@ -17,7 +17,6 @@
*/ */
//Init js to execute //Init js to execute
var logger = new Log(); var logger = new Log();
logger.debug("running debug");
var app_TENANT_CONFIGS = 'tenant.configs'; var app_TENANT_CONFIGS = 'tenant.configs';
var app_carbon = require('carbon'); var app_carbon = require('carbon');
var app_configs = { var app_configs = {

Loading…
Cancel
Save