summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--std/log/handlers.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/std/log/handlers.ts b/std/log/handlers.ts
index b22f458ac..ffcd846cc 100644
--- a/std/log/handlers.ts
+++ b/std/log/handlers.ts
@@ -125,7 +125,7 @@ export class FileHandler extends WriterHandler {
}
log(msg: string): void {
- Deno.writeSync(this._file.rid, this.#encoder.encode(msg + "\n"));
+ Deno.writeAllSync(this._file, this.#encoder.encode(msg + "\n"));
}
destroy(): Promise<void> {