Skip to content

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

C#

Configure morgan to ignore browser requests to /favico.ico

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