mirror of
https://github.com/openclaw/openclaw.git
synced 2026-02-19 18:39:20 -05:00
14 lines
490 B
TypeScript
14 lines
490 B
TypeScript
import { isTruthyEnvValue } from "../infra/env.js";
|
|
import { createSubsystemLogger } from "../logging/subsystem.js";
|
|
|
|
const debugEmbeddings = isTruthyEnvValue(process.env.OPENCLAW_DEBUG_MEMORY_EMBEDDINGS);
|
|
const log = createSubsystemLogger("memory/embeddings");
|
|
|
|
export function debugEmbeddingsLog(message: string, meta?: Record<string, unknown>): void {
|
|
if (!debugEmbeddings) {
|
|
return;
|
|
}
|
|
const suffix = meta ? ` ${JSON.stringify(meta)}` : "";
|
|
log.raw(`${message}${suffix}`);
|
|
}
|