Skip to content

Commit ddb6187

Browse files
committed
bugfix
1 parent 95bc670 commit ddb6187

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/log-manager.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import { join, dirname } from "path";
1818
import { appendFile, rename, unlink, readdir } from "fs/promises";
1919
import { LOG_DIR, DEFAULT_LOG_MAX_SIZE, DEFAULT_LOG_RETAIN } from "./constants";
20-
import type { AppendJSONLogProps, LogEntry, LogRotateOptions } from "./types";
20+
import type { LogEntry, LogRotateOptions } from "./types";
2121
import { watch } from "fs";
2222
import type { ReadableStreamController } from "bun";
2323
import { $ } from "bun"
@@ -83,10 +83,6 @@ export class LogManager {
8383
);
8484
}
8585
}
86-
87-
async appendJSONBatch(filePath: string, entries: AppendJSONLogProps[]): Promise<void> {
88-
await Promise.all(entries.map(e => this.appendJSONLog(filePath, e)))
89-
}
9086

9187
private async flushBuffer(filePath: string) {
9288
const buffer = this.writeBuffers.get(filePath);

0 commit comments

Comments
 (0)