This is a library. It should not output logs to STDOUT by default

This commit is contained in:
murgatroid99 2015-10-19 10:58:10 -07:00
parent 4ec94c1064
commit c03d669fea
4 changed files with 1 additions and 7 deletions

View File

@ -59,7 +59,6 @@ function normalizeKey(key) {
function validate(key, value) { function validate(key, value) {
if (_.endsWith(key, '-bin')) { if (_.endsWith(key, '-bin')) {
if (!(value instanceof Buffer)) { if (!(value instanceof Buffer)) {
console.log(value.constructor.toString());
throw new Error('keys that end with \'-bin\' must have Buffer values'); throw new Error('keys that end with \'-bin\' must have Buffer values');
} }
} else { } else {

View File

@ -597,10 +597,6 @@ function Server(options) {
throw new Error('Server is already running'); throw new Error('Server is already running');
} }
this.started = true; this.started = true;
console.log('Server starting');
_.each(handlers, function(handler, handler_name) {
console.log('Serving', handler_name);
});
server.start(); server.start();
/** /**
* Handles the SERVER_RPC_NEW event. If there is a handler associated with * Handles the SERVER_RPC_NEW event. If there is a handler associated with

View File

@ -86,7 +86,6 @@ describe('Async functionality', function() {
}); });
readStream.on('error', function (error) { readStream.on('error', function (error) {
console.log(error);
}); });
}); });

View File

@ -71,7 +71,7 @@ var fakeSuccessfulGoogleCredentials = {
var fakeFailingGoogleCredentials = { var fakeFailingGoogleCredentials = {
getRequestMetadata: function(service_url, callback) { getRequestMetadata: function(service_url, callback) {
setTimeout(function() { setTimeout(function() {
callback(new Error("Authorization failure")); callback(new Error('Authorization failure'));
}, 0); }, 0);
} }
}; };