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) {
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 {

View File

@ -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

View File

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

View File

@ -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);
}
};