From dae9d9c94daab227fc8d0b2aac9f685336116283 Mon Sep 17 00:00:00 2001 From: Marco Castelluccio Date: Wed, 5 Nov 2014 01:10:18 +0100 Subject: [PATCH] Remove logging statements --- midp/localmsg.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/midp/localmsg.js b/midp/localmsg.js index ec440c38..3ba0f581 100644 --- a/midp/localmsg.js +++ b/midp/localmsg.js @@ -520,12 +520,6 @@ NokiaImageProcessingLocalMsgConnection.prototype.sendMessageToServer = function( return; } - console.log("fileName: " + fileName); - console.log("max_vres: " + max_vres); - console.log("max_hres: " + max_hres); - console.log("aspect: " + aspect); - console.log("quality: " + quality); - fs.open("/" + fileName, (function(fd) { var imgData = fs.read(fd); fs.close(fd); @@ -533,9 +527,6 @@ NokiaImageProcessingLocalMsgConnection.prototype.sendMessageToServer = function( var img = new Image(); img.src = URL.createObjectURL(new Blob([ imgData ])); img.onload = (function() { - console.log("width: " + img.naturalWidth); - console.log("height: " + img.naturalHeight); - var canvas = document.createElement("canvas"); canvas.width = Math.min(img.naturalWidth, max_hres); canvas.height = Math.min(img.naturalHeight, max_vres); @@ -546,8 +537,6 @@ NokiaImageProcessingLocalMsgConnection.prototype.sendMessageToServer = function( createUniqueFile("/nokiaimageprocessing", "image", blob, (function(fileName) { var encoder = new DataEncoder(); - console.log("CREATED: " + fileName); - encoder.putStart(DataType.STRUCT, "event"); encoder.put(DataType.METHOD, "name", "Scale"); encoder.put(DataType.BYTE, "trans_id", trans_id); @@ -564,6 +553,7 @@ NokiaImageProcessingLocalMsgConnection.prototype.sendMessageToServer = function( }).bind(this)); }).bind(this), "image/jpeg", quality / 100); }).bind(this); + img.onerror = function(e) { console.error("Error in decoding image"); };