mirror of
https://github.com/coder/code-server.git
synced 2025-07-30 21:45:08 +08:00
refactor: use LogModule from Asher in tests
This commit is contained in:
@ -114,12 +114,9 @@ export const getFirstString = (value: string | string[] | object | undefined): s
|
||||
}
|
||||
|
||||
export function logError(prefix: string, err: any): void {
|
||||
console.log("hey joe log error was called")
|
||||
if (err instanceof Error) {
|
||||
console.log("it was an instance of error")
|
||||
logger.error(`${prefix}: ${err.message} ${err.stack}`)
|
||||
} else {
|
||||
console.log("not an isntance errro")
|
||||
logger.error(`${prefix}: ${err}`)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user