better access log with morgan
This commit is contained in:
parent
2709031ec3
commit
1615925ae5
@ -139,9 +139,12 @@ exports.multitxs = function(req, res, next) {
|
||||
txIndex[tx.txid] = tx;
|
||||
});
|
||||
|
||||
async.each(txs, function(tx, callback) {
|
||||
async.eachLimit(txs, 5, function(tx, callback) {
|
||||
tDb.fromIdWithInfo(tx.txid, function(err, tx) {
|
||||
if (err) console.log(err);
|
||||
if (err) {
|
||||
console.log(err);
|
||||
return common.handleErrors(err, res);
|
||||
}
|
||||
if (tx && tx.info) {
|
||||
txIndex[tx.txid].info = tx.info;
|
||||
}
|
||||
|
||||
@ -28,7 +28,8 @@ module.exports = function(app, historicSync, peerSync) {
|
||||
app.enable('jsonp callback');
|
||||
app.use(config.apiPrefix, setHistoric);
|
||||
app.use(config.apiPrefix, setPeer);
|
||||
app.use(express.logger('dev'));
|
||||
app.use(require('morgan')(':remote-addr :date[iso] ":method :url" :status :res[content-length] :response-time ":user-agent" '));
|
||||
|
||||
app.use(express.json());
|
||||
app.use(express.urlencoded());
|
||||
app.use(express.methodOverride());
|
||||
|
||||
@ -51,7 +51,7 @@
|
||||
"async": "*",
|
||||
"base58-native": "0.1.2",
|
||||
"bignum": "*",
|
||||
"bitauth": "^0.1.1",
|
||||
"morgan": "*",
|
||||
"bitcore": "git://github.com/bitpay/bitcore.git#aa41c70cff2583d810664c073a324376c39c8b36",
|
||||
"bufferput": "git://github.com/bitpay/node-bufferput.git",
|
||||
"buffertools": "*",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user