aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar murgatroid99 <mlumish@google.com>2015-10-19 10:58:10 -0700
committerGravatar murgatroid99 <mlumish@google.com>2015-10-19 11:00:14 -0700
commit5fccd9019f01ea71db058c59e07c791556b5a22b (patch)
tree1098a30eee63f2bc8d30ccc82fe1606108ecf80a /src
parent665fbecca5b4d41a14783a101873effbd037573b (diff)
This is a library. It should not output logs to STDOUT by default
Diffstat (limited to 'src')
-rw-r--r--src/node/src/metadata.js1
-rw-r--r--src/node/src/server.js4
-rw-r--r--src/node/test/async_test.js1
-rw-r--r--src/node/test/credentials_test.js2
4 files changed, 1 insertions, 7 deletions
diff --git a/src/node/src/metadata.js b/src/node/src/metadata.js
index 5c24e46c9b..183c3ad4fc 100644
--- a/src/node/src/metadata.js
+++ b/src/node/src/metadata.js
@@ -59,7 +59,6 @@ function normalizeKey(key) {
function validate(key, value) {
if (_.endsWith(key, '-bin')) {
if (!(value instanceof Buffer)) {
- console.log(value.constructor.toString());
throw new Error('keys that end with \'-bin\' must have Buffer values');
}
} else {
diff --git a/src/node/src/server.js b/src/node/src/server.js
index a974d593c9..89e1090c6c 100644
--- a/src/node/src/server.js
+++ b/src/node/src/server.js
@@ -597,10 +597,6 @@ function Server(options) {
throw new Error('Server is already running');
}
this.started = true;
- console.log('Server starting');
- _.each(handlers, function(handler, handler_name) {
- console.log('Serving', handler_name);
- });
server.start();
/**
* Handles the SERVER_RPC_NEW event. If there is a handler associated with
diff --git a/src/node/test/async_test.js b/src/node/test/async_test.js
index 6d71ea24f5..0af63c379e 100644
--- a/src/node/test/async_test.js
+++ b/src/node/test/async_test.js
@@ -86,7 +86,6 @@ describe('Async functionality', function() {
});
readStream.on('error', function (error) {
- console.log(error);
});
});
diff --git a/src/node/test/credentials_test.js b/src/node/test/credentials_test.js
index 3d0b38fd52..3e01b62cf4 100644
--- a/src/node/test/credentials_test.js
+++ b/src/node/test/credentials_test.js
@@ -71,7 +71,7 @@ var fakeSuccessfulGoogleCredentials = {
var fakeFailingGoogleCredentials = {
getRequestMetadata: function(service_url, callback) {
setTimeout(function() {
- callback(new Error("Authorization failure"));
+ callback(new Error('Authorization failure'));
}, 0);
}
};