style(logging): organize embedded log imports

This commit is contained in:
Peter Steinberger
2026-01-03 21:09:44 +00:00
parent 9d2d0c64c2
commit 107dc1aa42
2 changed files with 3 additions and 7 deletions

View File

@@ -26,12 +26,12 @@ import type { ThinkLevel, VerboseLevel } from "../auto-reply/thinking.js";
import { formatToolAggregate } from "../auto-reply/tool-meta.js"; import { formatToolAggregate } from "../auto-reply/tool-meta.js";
import type { ClawdisConfig } from "../config/config.js"; import type { ClawdisConfig } from "../config/config.js";
import { getMachineDisplayName } from "../infra/machine-name.js"; import { getMachineDisplayName } from "../infra/machine-name.js";
import { createSubsystemLogger } from "../logging.js";
import { splitMediaFromOutput } from "../media/parse.js"; import { splitMediaFromOutput } from "../media/parse.js";
import { import {
type enqueueCommand, type enqueueCommand,
enqueueCommandInLane, enqueueCommandInLane,
} from "../process/command-queue.js"; } from "../process/command-queue.js";
import { createSubsystemLogger } from "../logging.js";
import { CONFIG_DIR, resolveUserPath } from "../utils.js"; import { CONFIG_DIR, resolveUserPath } from "../utils.js";
import { resolveClawdisAgentDir } from "./agent-paths.js"; import { resolveClawdisAgentDir } from "./agent-paths.js";
import { DEFAULT_MODEL, DEFAULT_PROVIDER } from "./defaults.js"; import { DEFAULT_MODEL, DEFAULT_PROVIDER } from "./defaults.js";

View File

@@ -603,9 +603,7 @@ export function subscribeEmbeddedPiSession(params: {
if (evt.type === "auto_compaction_start") { if (evt.type === "auto_compaction_start") {
compactionInFlight = true; compactionInFlight = true;
ensureCompactionPromise(); ensureCompactionPromise();
log.debug( log.debug(`embedded run compaction start: runId=${params.runId}`);
`embedded run compaction start: runId=${params.runId}`,
);
} }
if (evt.type === "auto_compaction_end") { if (evt.type === "auto_compaction_end") {
@@ -614,9 +612,7 @@ export function subscribeEmbeddedPiSession(params: {
if (willRetry) { if (willRetry) {
noteCompactionRetry(); noteCompactionRetry();
resetForCompactionRetry(); resetForCompactionRetry();
log.debug( log.debug(`embedded run compaction retry: runId=${params.runId}`);
`embedded run compaction retry: runId=${params.runId}`,
);
} else { } else {
maybeResolveCompactionWait(); maybeResolveCompactionWait();
} }