diff options
Diffstat (limited to '_____/verbose.go')
-rw-r--r-- | _____/verbose.go | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/_____/verbose.go b/_____/verbose.go new file mode 100644 index 00000000..d0088b69 --- /dev/null +++ b/_____/verbose.go @@ -0,0 +1,18 @@ +package _____ + +//if f.Verbose { +// rr.Observe(func(event int, ctx interface{}) { +// switch event { +// case roadrunner.EventPoolError: +// logrus.Error(ctx) +// case roadrunner.EventWorkerCreate: +// logrus.Infof("%s - created", ctx) +// case roadrunner.EventWorkerError: +// logrus.Errorf("%s: %s", ctx.(roadrunner.WorkerError).Worker, ctx.(roadrunner.WorkerError).Error()) +// case roadrunner.EventWorkerDestruct: +// logrus.Warnf("%s - destructed", ctx) +// case roadrunner.EventWorkerKill: +// logrus.Warnf("%s - killed", ctx) +// } +// }) +//} |