summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
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