mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-07 22:51:23 +00:00
chore: Enable more lint rules, disable some that trigger a lot. Will clean up later.
This commit is contained in:
@@ -187,8 +187,8 @@ function logToFile(
|
||||
meta?: Record<string, unknown>,
|
||||
) {
|
||||
if (level === "silent") return;
|
||||
const safeLevel = level as Exclude<LogLevel, "silent">;
|
||||
const method = (fileLogger as unknown as Record<string, unknown>)[safeLevel] as unknown as
|
||||
const safeLevel = level;
|
||||
const method = (fileLogger as unknown as Record<string, unknown>)[safeLevel] as
|
||||
| ((...args: unknown[]) => void)
|
||||
| undefined;
|
||||
if (typeof method !== "function") return;
|
||||
|
||||
Reference in New Issue
Block a user