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