diff options
author | Wolfy-J <[email protected]> | 2019-05-04 19:31:06 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2019-05-04 19:31:06 +0300 |
commit | 2afa417f4f46b31b79043e3e56513d51e4ad2fde (patch) | |
tree | e3939afb104647e82bd8bbed85f75616c1faf0eb /cmd/util | |
parent | 2efc533f2aac215d487a80020b0f9bf4ae5209c3 (diff) |
renamings
Diffstat (limited to 'cmd/util')
-rw-r--r-- | cmd/util/debug.go | 40 |
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 } |