mirror of https://github.com/grpc/grpc-node.git
This is a library. It should not output logs to STDOUT by default
This commit is contained in:
parent
4ec94c1064
commit
c03d669fea
|
@ -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 {
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -86,7 +86,6 @@ describe('Async functionality', function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
readStream.on('error', function (error) {
|
readStream.on('error', function (error) {
|
||||||
console.log(error);
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue