debug: don't log http requests for /packs etc
This commit is contained in:
parent
8d312bdbea
commit
083496943a
|
@ -91,7 +91,14 @@ if (Conf.sentryDsn) {
|
||||||
app.use('*', sentryMiddleware({ dsn: Conf.sentryDsn }));
|
app.use('*', sentryMiddleware({ dsn: Conf.sentryDsn }));
|
||||||
}
|
}
|
||||||
|
|
||||||
app.use('*', logger(Debug('ditto:http')));
|
const debug = Debug('ditto:http');
|
||||||
|
|
||||||
|
app.use('/api', logger(debug));
|
||||||
|
app.use('/relay', logger(debug));
|
||||||
|
app.use('/.well-known', logger(debug));
|
||||||
|
app.use('/users', logger(debug));
|
||||||
|
app.use('/nodeinfo', logger(debug));
|
||||||
|
app.use('/oauth', logger(debug));
|
||||||
|
|
||||||
app.get('/api/v1/streaming', streamingController);
|
app.get('/api/v1/streaming', streamingController);
|
||||||
app.get('/api/v1/streaming/', streamingController);
|
app.get('/api/v1/streaming/', streamingController);
|
||||||
|
|
Loading…
Reference in New Issue