()
| 125 | } |
| 126 | |
| 127 | export function resetDebugLoggingForTesting(): void { |
| 128 | debugWriter?.dispose() |
| 129 | debugWriter = null |
| 130 | pendingWrite = Promise.resolve() |
| 131 | debugLoggingUnavailable = false |
| 132 | debugLoggingUnavailableLogged = false |
| 133 | runtimeDebugEnabled = false |
| 134 | debugLogBudgetByPath.clear() |
| 135 | getDebugLogMaxBytes.cache.clear?.() |
| 136 | getMinDebugLogLevel.cache.clear?.() |
| 137 | isDebugMode.cache.clear?.() |
| 138 | getDebugFilePath.cache.clear?.() |
| 139 | getDebugFilter.cache.clear?.() |
| 140 | isDebugToStdErr.cache.clear?.() |
| 141 | updateLatestDebugLogSymlink.cache.clear?.() |
| 142 | } |
| 143 | |
| 144 | /** |
| 145 | * Minimum log level to include in debug output. Defaults to 'debug', which |
no test coverage detected