From 9314744d715b839b1708ca64fb6ca71438d8b440 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Wed, 4 Mar 2020 17:31:02 +0000 Subject: fix silent logging https://github.com/mimecast/dtail/issues/5 --- cmd/dserver/main.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'cmd/dserver') diff --git a/cmd/dserver/main.go b/cmd/dserver/main.go index f9207d5..865bf95 100644 --- a/cmd/dserver/main.go +++ b/cmd/dserver/main.go @@ -51,7 +51,6 @@ func main() { ctx, cancel := context.WithCancel(context.Background()) if shutdownAfter > 0 { - logger.Info("Enabling auto shutdown timer", shutdownAfter) ctx, cancel = context.WithTimeout(ctx, time.Duration(shutdownAfter)*time.Second) } @@ -66,10 +65,7 @@ func main() { } }() - serverEnable := true - silentEnable := false - nothingEnable := false - logger.Start(ctx, serverEnable, debugEnable, silentEnable, nothingEnable) + logger.Start(ctx, logger.Modes{Server: true, Debug: debugEnable}) if pprof > -1 { // For debugging purposes only -- cgit v1.2.3