Example #1
0
// criticalf logs critical irrecoverable errors and "throws" a busywork panic
func (c *counters) criticalf(format string, args ...interface{}) {
	s := fmt.Sprintf(format, args...)
	c.logger.Criticalf(s)
	busy.Throw(s)
}
Example #2
0
// errorf logs irrecoverable errors and "throws" a busywork panic
func (c *counters) errorf(format string, args ...interface{}) {
	s := fmt.Sprintf(format, args...)
	c.logger.Errorf(s)
	busy.Throw(s)
}