mirror of
https://github.com/ZHANGTIANYAO1/teamspeak-music-bot.git
synced 2026-10-02 04:52:50 +08:00
fix: address Phase 3 review — Logger type export, PlayerEvents interface, PCM backpressure
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
5afc8c5224
commit
17d2decc91
3 files changed
+30
-7
No files matched your search
+3
-1
@@ -2,7 +2,9 @@ import pino from "pino";
|
||||
import { mkdirSync } from "node:fs";
|
||||
import { join } from "node:path";
|
||||
|
||||
export function createLogger(logDir?: string): pino.Logger {
|
||||
export type Logger = pino.Logger;
|
||||
|
||||
export function createLogger(logDir?: string): Logger {
|
||||
if (!logDir) {
|
||||
return pino({ level: "info" });
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user