please consider changing CircuitState to contain strings instead of numbers
xenoterracide opened this issue · comments
Caleb Cushing commented
this is unreadable without looking at the code
this.breakerPolicy.onStateChange(data => this.log.trace('breaker', data))
So I'll have to map it myself, but it would be nice if v3 would change this since in theory it can break backwards compatibility.
Caleb Cushing commented
nevermind , this does what I want
this.breakerPolicy.onStateChange(data => this.log.trace('breaker', CircuitState[data]))