Detect whether we should output debug logging. false iff the logger says it's not enabled; true if the logger doesn't say.
(logger log.Logger)
| 140 | // Detect whether we should output debug logging. |
| 141 | // false iff the logger says it's not enabled; true if the logger doesn't say. |
| 142 | func debugEnabled(logger log.Logger) bool { |
| 143 | if x, ok := logger.(interface{ DebugEnabled() bool }); ok && !x.DebugEnabled() { |
| 144 | return false |
| 145 | } |
| 146 | return true |
| 147 | } |
| 148 | |
| 149 | // Log implements gokit's Logger interface; sends logs to underlying logger and |
| 150 | // also puts the on the spans. |
no test coverage detected