summaryrefslogtreecommitdiff
path: root/cmd/util/debug.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/util/debug.go')
-rw-r--r--cmd/util/debug.go40
1 files changed, 0 insertions, 40 deletions
diff --git a/cmd/util/debug.go b/cmd/util/debug.go
index c120eba2..9b94510d 100644
--- a/cmd/util/debug.go
+++ b/cmd/util/debug.go
@@ -3,7 +3,6 @@ package util
import (
"github.com/sirupsen/logrus"
"github.com/spiral/roadrunner"
- "github.com/spiral/roadrunner/service/watcher"
"strings"
)
@@ -58,44 +57,5 @@ func LogEvent(logger *logrus.Logger, event int, ctx interface{}) bool {
return true
}
- // watchers
- switch event {
- case watcher.EventMaxTTL:
- w := ctx.(roadrunner.WorkerError)
- logger.Debug(Sprintf(
- "<white+hb>worker.%v</reset> <yellow>%s</reset>",
- *w.Worker.Pid,
- w.Caused,
- ))
- return true
-
- case watcher.EventMaxIdleTTL:
- w := ctx.(roadrunner.WorkerError)
- logger.Debug(Sprintf(
- "<white+hb>worker.%v</reset> <yellow>%s</reset>",
- *w.Worker.Pid,
- w.Caused,
- ))
- return true
-
- case watcher.EventMaxMemory:
- w := ctx.(roadrunner.WorkerError)
- logger.Error(Sprintf(
- "<white+hb>worker.%v</reset> <red>%s</reset>",
- *w.Worker.Pid,
- w.Caused,
- ))
- return true
-
- case watcher.EventMaxExecTTL:
- w := ctx.(roadrunner.WorkerError)
- logger.Error(Sprintf(
- "<white+hb>worker.%v</reset> <red>%s</reset>",
- *w.Worker.Pid,
- w.Caused,
- ))
- return true
- }
-
return false
}