fix: replace console.log with Pino logger in server-side files

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Charles GTE
2026-05-15 22:05:13 +02:00
co-authored by Claude Sonnet 4.6
parent 592588ef76
commit 4f14d16452
6 changed files with 23 additions and 11 deletions
@@ -1,6 +1,9 @@
"use server";
import {userAction} from "@/lib/safe-actions/actions";
import { logger } from "@/lib/logger";
const log = logger.child({ module: "dashboard/delete-project.action" });
import {z} from "zod";
import {v4 as uuidv4} from "uuid";
import {ServerActionResult} from "@/types/action-type";
@@ -51,7 +54,7 @@ export const deleteProjectAction = userAction.schema(z.string()).action(async ({
},
};
} catch (error) {
console.log(error);
log.error({ error }, "Failed to archive project");
return {
success: false,
actionError: {