summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2021-08-22 10:07:00 +0300
committerPaul Buetow <paul@buetow.org>2021-08-22 10:07:00 +0300
commit9883a190109623b64e6d311dc2b462a6eae68003 (patch)
treeda319d37bf681687beb2c38e6292b30f5e04a261 /cmd
parentc2522ffb59514443816a96386c16bb7527cbe57c (diff)
introduces the protocol package
Diffstat (limited to 'cmd')
-rw-r--r--cmd/dserver/main.go4
-rw-r--r--cmd/dtail/main.go2
2 files changed, 5 insertions, 1 deletions
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