(message: string, data?: unknown)
| 63 | * @param data - Optional data to log |
| 64 | */ |
| 65 | export function logDebug(message: string, data?: unknown): void { |
| 66 | if (!DEBUG_ENABLED) return |
| 67 | |
| 68 | if (data !== undefined) { |
| 69 | console.log(`[arctic-codex-plugin] ${message}`, data) |
| 70 | } else { |
| 71 | console.log(`[arctic-codex-plugin] ${message}`) |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | /** |
| 76 | * Log warning (always enabled for important issues) |
no test coverage detected