summaryrefslogtreecommitdiff
path: root/cmd/_____/verbose.go
blob: d0088b69f8081c6f8ca4cec796060cc5711caaca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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)
//		}
//	})
//}