[core] ignore all files requests in http access logs

This commit is contained in:
devlikepro committed 2024-08-27 16:43:32 +07:00
1 parent b6b571e84b
commit 899139dda1
1 file changed
+5 -1
+5 -1
View File
@@ -50,7 +50,11 @@ export const IMPORTS = [
transport: getPinoTransport(),
autoLogging: {
ignore: (req) => {
return req.url.startsWith('/dashboard/');
return (
req.url.startsWith('/dashboard/') ||
req.url.startsWith('/api/files/') ||
req.url.startsWith('/api/s3/')
);
},
},
serializers: {