(message: string, ...args: any[])
| 47 | } |
| 48 | |
| 49 | export async function debug(message: string, ...args: any[]): Promise<void> { |
| 50 | if (process.env.LOG_LEVEL !== 'debug') { |
| 51 | return |
| 52 | } |
| 53 | await clearLine(process.stderr) |
| 54 | await writeStderr(format(label('debug', message), ...args)) |
| 55 | await writeStderr('\n') |
| 56 | } |
| 57 | |
| 58 | export async function warn(message: string, ...args: any[]): Promise<void> { |
| 59 | await clearLine(process.stderr) |
no test coverage detected