diff options
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 |