fix log
This commit is contained in:
parent
4e7bfaab8b
commit
247ce44776
1 changed files with 1 additions and 2 deletions
|
|
@ -52,7 +52,7 @@ export namespace Log {
|
||||||
export function file() {
|
export function file() {
|
||||||
return logpath
|
return logpath
|
||||||
}
|
}
|
||||||
let write = process.stderr.write
|
let write = (msg: any) => Bun.stderr.write(msg)
|
||||||
|
|
||||||
export async function init(options: Options) {
|
export async function init(options: Options) {
|
||||||
if (options.level) level = options.level
|
if (options.level) level = options.level
|
||||||
|
|
@ -68,7 +68,6 @@ export namespace Log {
|
||||||
write = (msg: any) => {
|
write = (msg: any) => {
|
||||||
writer.write(msg)
|
writer.write(msg)
|
||||||
writer.flush()
|
writer.flush()
|
||||||
return true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue