Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Commit

Permalink
fix(server): update logging config according to mode (#64)
Browse files Browse the repository at this point in the history
Signed-off-by: Vasek - Tom C <tom.chauveau@epitech.eu>
  • Loading branch information
TomChv authored Jul 21, 2022
1 parent ca5d49f commit 8a7ac1f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 8a7ac1f

Please sign in to comment.