diff options
author | Wolfy-J <[email protected]> | 2019-05-03 23:38:03 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2019-05-03 23:38:03 +0300 |
commit | 6d5b883247f0eb621ca51da791664a28c8539a52 (patch) | |
tree | 00ebb5e92799c60ac4050f634b0773969384f3ae /cmd | |
parent | 4e4f0bfb8be5d26772060bc77256cea7cbf68138 (diff) |
watching
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/util/debug.go | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/cmd/util/debug.go b/cmd/util/debug.go index 01082112..c120eba2 100644 --- a/cmd/util/debug.go +++ b/cmd/util/debug.go @@ -69,6 +69,15 @@ func LogEvent(logger *logrus.Logger, event int, ctx interface{}) bool { )) 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( @@ -77,6 +86,15 @@ func LogEvent(logger *logrus.Logger, event int, ctx interface{}) bool { 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 |