Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

refactor(logger): drop the comment on getLogLevel

Calvin1532c9a21331
diff --git a/backend/src/lib/logger/logger.ts b/backend/src/lib/logger/logger.ts
index 3d5fca5874..c21db2fb96 100644
--- a/backend/src/lib/logger/logger.ts
+++ b/backend/src/lib/logger/logger.ts
@@ -106,9 +106,6 @@ const extractOrgId = () => {
}
};
-// A transport target filters independently of the logger instance, so both have to be set from
-// the same place. Pinning the target to info while the instance read the variable is what made
-// PINO_LOG_LEVEL=debug do nothing.
const getLogLevel = () => process.env.PINO_LOG_LEVEL || "info";
export const initLogger = () => {