summaryrefslogtreecommitdiff
path: root/cmd/rr/utils/verbose.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/rr/utils/verbose.go')
-rw-r--r--cmd/rr/utils/verbose.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/cmd/rr/utils/verbose.go b/cmd/rr/utils/verbose.go
new file mode 100644
index 00000000..43770f34
--- /dev/null
+++ b/cmd/rr/utils/verbose.go
@@ -0,0 +1,18 @@
+package utils
+
+//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)
+// }
+// })
+//}