From 8a7ac1f3f67c1ea466587c1c0aef7b0054316e7b Mon Sep 17 00:00:00 2001 From: Vasek - Tom C Date: Thu, 21 Jul 2022 12:18:41 +0200 Subject: [PATCH] fix(server): update logging config according to mode (#64) Signed-off-by: Vasek - Tom C --- server/server.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server/server.go b/server/server.go index ec8c0b0..974af7d 100644 --- a/server/server.go +++ b/server/server.go @@ -36,7 +36,11 @@ func New(mode Mode) *LSP { // This increases logging verbosity (optional) // logTo := "/tmp/daggerlsp.log" // logging.Configure(2, &logTo) - logging.Configure(0, nil) + if mode == DEV { + logging.Configure(2, nil) + } else { + logging.Configure(0, nil) + } log := logging.GetLogger(Name) h := handler.New(Name, Version, log, handler.Mode(mode))