From 083496943a67057e6a3f943c5990fc6f4b3a8245 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 27 Dec 2023 21:57:10 -0600 Subject: [PATCH] debug: don't log http requests for /packs etc --- src/app.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/app.ts b/src/app.ts index 3bb80ecf..b8a96950 100644 --- a/src/app.ts +++ b/src/app.ts @@ -91,7 +91,14 @@ if (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);