Skip to content

Usenet streaming with a WebDAV server and a SABnzbd-compatible API

C#

Do not log successful frontend requests.

nzbdav-dev844b095a202f
diff --git a/frontend/server.js b/frontend/server.js
index 50fea2bf..b4691929 100644
--- a/frontend/server.js
+++ b/frontend/server.js
@@ -37,7 +37,7 @@ if (DEVELOPMENT) {
"/assets",
express.static("build/client/assets", { immutable: true, maxAge: "1y" }),
);
- app.use(morgan("tiny"));
+ app.use(morgan("tiny", { skip: (_req, res) => res.statusCode < 400 }));
app.use(express.static("build/client", { maxAge: "1h" }));
app.use(await import(BUILD_PATH).then((mod) => mod.app));
}