🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
refactor: replace logging library with console.error in tRPC tools handler
YuTengjing51ddc7cb1887
diff --git a/src/app/(backend)/trpc/tools/[trpc]/route.ts b/src/app/(backend)/trpc/tools/[trpc]/route.tsindex b0ff0de8570..46b17786825 100644--- a/src/app/(backend)/trpc/tools/[trpc]/route.ts+++ b/src/app/(backend)/trpc/tools/[trpc]/route.ts@@ -1,7 +1,6 @@import { fetchRequestHandler } from '@trpc/server/adapters/fetch';import type { NextRequest } from 'next/server';-import { pino } from '@/libs/logger';import { createLambdaContext } from '@/libs/trpc/lambda/context';import { prepareRequestForTRPC } from '@/libs/trpc/utils/request-adapter';import { toolsRouter } from '@/server/routers/tools';@@ -20,7 +19,7 @@ const handler = (req: NextRequest) => {endpoint: '/trpc/tools',onError: ({ error, path, type }) => {- pino.info(`Error in tRPC handler (tools) on path: ${path}, type: ${type}`);+ console.error(`Error in tRPC handler (tools) on path: ${path}, type: ${type}`);console.error(error);},