( message: string, filter: DebugFilter | null, )
| 143 | * Combines extraction and filtering |
| 144 | */ |
| 145 | export function shouldShowDebugMessage( |
| 146 | message: string, |
| 147 | filter: DebugFilter | null, |
| 148 | ): boolean { |
| 149 | // Fast path: no filter means show everything |
| 150 | if (!filter) { |
| 151 | return true |
| 152 | } |
| 153 | |
| 154 | // Only extract categories if we have a filter |
| 155 | const categories = extractDebugCategories(message) |
| 156 | return shouldShowDebugCategories(categories, filter) |
| 157 | } |
| 158 |
no test coverage detected