We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b0fa37 commit 63d593eCopy full SHA for 63d593e
src/index.ts
@@ -18,9 +18,11 @@ import redisRestPlugin from "./plugins/redis";
18
import sessionPlugin from "./plugins/session";
19
import versionOnePlugin from "./v1";
20
21
+const productionEnv = process.env.PRODUCTION === "true";
22
+
23
const instance: FastifyInstance = fastify({
24
logger: {
- level: "info",
25
+ level: productionEnv ? "warn" : "info",
26
},
27
});
28
0 commit comments