fix: displayBanner logging when silentMode is active (#385)

This commit is contained in:
Ralph Khreish
2025-05-03 01:06:29 +02:00
committed by GitHub
parent 1f44ea5299
commit 2e17437da3
3 changed files with 69 additions and 62 deletions

View File

@@ -22,15 +22,6 @@ export async function updateTasksDirect(args, log, context = {}) {
const { session } = context; // Extract session
const { tasksJsonPath, from, prompt, research, projectRoot } = args;
// Create the standard logger wrapper
const logWrapper = {
info: (message, ...args) => log.info(message, ...args),
warn: (message, ...args) => log.warn(message, ...args),
error: (message, ...args) => log.error(message, ...args),
debug: (message, ...args) => log.debug && log.debug(message, ...args),
success: (message, ...args) => log.info(message, ...args)
};
// --- Input Validation (Keep existing checks) ---
if (!tasksJsonPath) {
log.error('updateTasksDirect called without tasksJsonPath');