From 1b736b14468b7f5b9edf771098ad4caf2b475d5c Mon Sep 17 00:00:00 2001 From: Alex Mikhalev Date: Sat, 1 Sep 2018 03:15:21 -0600 Subject: [PATCH] Allow configuring log level from env --- server/configureLogger.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/configureLogger.ts b/server/configureLogger.ts index bda4ecb..b3eab68 100644 --- a/server/configureLogger.ts +++ b/server/configureLogger.ts @@ -1,5 +1,5 @@ import log from "@common/logger"; Object.assign(log, { name: "sprinklers3/server", - level: "debug", + level: process.env.LOG_LEVEL || "debug", });