summaryrefslogtreecommitdiff
path: root/cmd/_____/verbose.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-06-05 16:23:14 +0300
committerWolfy-J <[email protected]>2018-06-05 16:23:14 +0300
commit76ff8d1c95e087749d559ee5a4f8f0348feafffa (patch)
tree112630d2d2cfe41d809065034c13b1066b8e05c2 /cmd/_____/verbose.go
parent3c86132f90ef6473b4073a8b1500d01b6114fc30 (diff)
Cs and refactoring
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)
+// }
+// })
+//}