From 9883a190109623b64e6d311dc2b462a6eae68003 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 22 Aug 2021 10:07:00 +0300 Subject: introduces the protocol package --- cmd/dserver/main.go | 4 ++++ cmd/dtail/main.go | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'cmd') diff --git a/cmd/dserver/main.go b/cmd/dserver/main.go index 89f9dca..1fe77a7 100644 --- a/cmd/dserver/main.go +++ b/cmd/dserver/main.go @@ -73,6 +73,10 @@ func main() { } }() + if debugEnable { + config.Common.DebugEnable = true + } + logger.Start(ctx, logger.Modes{Server: true, Debug: debugEnable || config.Common.DebugEnable}) if config.ServerRelaxedAuthEnable { diff --git a/cmd/dtail/main.go b/cmd/dtail/main.go index c78e11a..6687538 100644 --- a/cmd/dtail/main.go +++ b/cmd/dtail/main.go @@ -101,8 +101,8 @@ func main() { if pprof > -1 { // For debugging purposes only pprofArgs := fmt.Sprintf("0.0.0.0:%d", pprof) - logger.Info("Starting PProf", pprofArgs) go http.ListenAndServe(pprofArgs, nil) + logger.Info("Started PProf", pprofArgs) } var client clients.Client -- cgit v1.2.3