Browse Source

Allow configuring log level from env

update-deps
Alex Mikhalev 6 years ago
parent
commit
1b736b1446
  1. 2
      server/configureLogger.ts

2
server/configureLogger.ts

@ -1,5 +1,5 @@
import log from "@common/logger"; import log from "@common/logger";
Object.assign(log, { Object.assign(log, {
name: "sprinklers3/server", name: "sprinklers3/server",
level: "debug", level: process.env.LOG_LEVEL || "debug",
}); });

Loading…
Cancel
Save