Skip to content

Commit

Permalink
log stack again
Browse files Browse the repository at this point in the history
  • Loading branch information
mikewuu committed Jul 24, 2024
1 parent e531c8f commit f065581
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/ai/chat/tools/get-search-for-tasks-tool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,12 @@ export function getSearchForTasksTool(params: GetSearchForTasksToolParams) {
Sentry.captureException(error)

logger.debug('Failed to search for tasks', {
event: 'get_answer:search_tasks:task',
event: 'get_answer:search_tasks:failed',
answer_id: answerId,
organization: getOrganizationLogData(organization),
search_term: searchTerm,
error: error instanceof Error ? error.message : error,
stack_trace: error instanceof Error ? error.stack?.split('\n') : null,
})

return 'FAILED'
Expand Down

0 comments on commit f065581

Please sign in to comment.