summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorJuanjo Diaz <juanjo.diaz@intopalo.com>2018-01-30 08:53:38 -0800
committerJuanjo Diaz <juanjo.diaz@intopalo.com>2018-01-30 08:53:38 -0800
commita0035359419f71f1d1faf9c26877d3d3cd211dfa (patch)
tree80139f5f824578fb8b8463b5afa214092f93abc2 /core
parent609a3fac7447f214e90e2052f5f6e73eb4925e40 (diff)
downloadnovnc-a0035359419f71f1d1faf9c26877d3d3cd211dfa.tar.gz
Remove console statements
Diffstat (limited to 'core')
-rw-r--r--core/base64.js3
-rw-r--r--core/input/keyboard.js2
2 files changed, 3 insertions, 2 deletions
diff --git a/core/base64.js b/core/base64.js
index 9d24a25..3c48eca 100644
--- a/core/base64.js
+++ b/core/base64.js
@@ -6,6 +6,7 @@
/*jslint white: false */
/*global console */
+import * as Log from './util/logging.js';
export default {
/* Convert data (an array of integers) to a Base64 string. */
@@ -82,7 +83,7 @@ export default {
var padding = (data.charAt(i) === base64Pad);
// Skip illegal characters and whitespace
if (c === -1) {
- console.error("Illegal character code " + data.charCodeAt(i) + " at position " + i);
+ Log.Error("Illegal character code " + data.charCodeAt(i) + " at position " + i);
continue;
}
diff --git a/core/input/keyboard.js b/core/input/keyboard.js
index 464d1ce..1bf1a38 100644
--- a/core/input/keyboard.js
+++ b/core/input/keyboard.js
@@ -227,7 +227,7 @@ Keyboard.prototype = {
this._pendingKey = null;
if (!keysym) {
- console.log('keypress with no keysym:', e);
+ Log.Info('keypress with no keysym:', e);
return;
}