mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 18:54:58 +00:00
chore: migrate to oxlint and oxfmt
Co-authored-by: Christoph Nakazawa <christoph.pojer@gmail.com>
This commit is contained in:
@@ -26,8 +26,7 @@ function parseMetaName(raw?: unknown): { subsystem?: string; module?: string } {
|
||||
try {
|
||||
const parsed = JSON.parse(raw) as Record<string, unknown>;
|
||||
return {
|
||||
subsystem:
|
||||
typeof parsed.subsystem === "string" ? parsed.subsystem : undefined,
|
||||
subsystem: typeof parsed.subsystem === "string" ? parsed.subsystem : undefined,
|
||||
module: typeof parsed.module === "string" ? parsed.module : undefined,
|
||||
};
|
||||
} catch {
|
||||
@@ -40,8 +39,7 @@ export function parseLogLine(raw: string): ParsedLogLine | null {
|
||||
const parsed = JSON.parse(raw) as Record<string, unknown>;
|
||||
const meta = parsed._meta as Record<string, unknown> | undefined;
|
||||
const nameMeta = parseMetaName(meta?.name);
|
||||
const levelRaw =
|
||||
typeof meta?.logLevelName === "string" ? meta.logLevelName : undefined;
|
||||
const levelRaw = typeof meta?.logLevelName === "string" ? meta.logLevelName : undefined;
|
||||
return {
|
||||
time:
|
||||
typeof parsed.time === "string"
|
||||
|
||||
Reference in New Issue
Block a user