Skip to content

Commit

Permalink
Support warn+ logging
Browse files Browse the repository at this point in the history
  • Loading branch information
adg-flare committed Dec 9, 2024
1 parent 3791af4 commit 213eb78
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ async function bootstrap() {
if (process.env.LOG_LEVEL == "debug") {
logLevels = ["verbose"];
}
if (process.env.LOG_LEVEL == "warn") {
logLevels = ["warn"];
}

const app = await NestFactory.create(RandomExampleProviderModule, { logger: logLevels });
app.use(helmet());
Expand Down

0 comments on commit 213eb78

Please sign in to comment.