Skip to content

Commit 775f77b

Browse files
committed
fix: update error parameter type in logError function
- Changed the type of the 'error' parameter in the logError function from 'unknown' to 'Error | string' for better type safety and clarity.
1 parent 531fd31 commit 775f77b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/mastra/config/logger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ export const logAgentActivity = (
164164

165165
export const logError = (
166166
component: string,
167-
error: unknown,
167+
error: Error | string,
168168
context?: Record<string, unknown>
169169
) => {
170170
const message = `❌ Error in ${component}`

0 commit comments

Comments
 (0)