Skip to content

Commit edfb87b

Browse files
committed
refactor(workspace): replace info with debug for file copy logging
The info level logging for file copy operations is too verbose for normal operation. Using debug level is more appropriate as this is typically only needed for troubleshooting.
1 parent 6bbdbad commit edfb87b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/runtime/services/workspace/fs-utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { mkdir, readFile, writeFile } from 'node:fs/promises';
22
import * as path from 'node:path';
33

44
import type { AgentDefinition } from './discovery.js';
5-
import { info, warn, error } from '../../../shared/logging/logger.js';
5+
import { debug, warn, error } from '../../../shared/logging/logger.js';
66

77
export async function ensureDir(dirPath: string): Promise<void> {
88
await mkdir(dirPath, { recursive: true });
@@ -31,7 +31,7 @@ export async function copyPromptFile(sourcePath: string, targetPath: string): Pr
3131
try {
3232
const content = await readFile(sourcePath, 'utf8');
3333
await writeFile(targetPath, content, 'utf8');
34-
info(`[workspace] Copied template file from ${sourcePath} to ${targetPath}`);
34+
debug(`[workspace] Copied template file from ${sourcePath} to ${targetPath}`);
3535
} catch (err) {
3636
if ((err as NodeJS.ErrnoException).code === 'ENOENT') {
3737
warn(`[workspace] Template file not found: ${sourcePath}, creating empty file instead`);

0 commit comments

Comments
 (0)