From df22506bdddae05cb0074cbc70926b741d1ccf90 Mon Sep 17 00:00:00 2001 From: Thomas Miceli Date: Wed, 24 May 2023 16:40:27 +0200 Subject: [PATCH] Append logs to stdout --- internal/config/config.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/internal/config/config.go b/internal/config/config.go index 52fdcb5..2950c6b 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -130,12 +130,8 @@ func InitLog() { level = zerolog.InfoLevel } - if os.Getenv("DEV") == "1" { - multi := zerolog.MultiLevelWriter(zerolog.NewConsoleWriter(), file) - log.Logger = zerolog.New(multi).Level(level).With().Timestamp().Logger() - } else { - log.Logger = zerolog.New(file).Level(level).With().Timestamp().Logger() - } + multi := zerolog.MultiLevelWriter(zerolog.NewConsoleWriter(), file) + log.Logger = zerolog.New(multi).Level(level).With().Timestamp().Logger() } func CheckGitVersion(version string) (bool, error) {