diff --git a/src/adapters/supabase/helpers/comment.ts b/src/adapters/supabase/helpers/comment.ts index ea67958..62096b1 100644 --- a/src/adapters/supabase/helpers/comment.ts +++ b/src/adapters/supabase/helpers/comment.ts @@ -27,7 +27,7 @@ export class Comment extends SuperSupabase { async getComment(commentNodeId: string): Promise { const { data, error } = await this.supabase.from("issue_comments").select("*").eq("id", commentNodeId); if (error) { - this.context.logger.error("Error getting comment", error); + this.context.logger.error("Error getting comment", { err: error }); } return data; } @@ -44,7 +44,7 @@ export class Comment extends SuperSupabase { max_results: 10, }); if (error) { - this.context.logger.error("Error finding similar comments", error); + this.context.logger.error("Error finding similar comments", { err: error }); } return data; } diff --git a/src/adapters/supabase/helpers/issues.ts b/src/adapters/supabase/helpers/issues.ts index 8635539..726f60f 100644 --- a/src/adapters/supabase/helpers/issues.ts +++ b/src/adapters/supabase/helpers/issues.ts @@ -27,7 +27,7 @@ export class Issue extends SuperSupabase { async getIssue(issueNodeId: string): Promise { const { data, error } = await this.supabase.from("issues").select("*").eq("id", issueNodeId).returns(); if (error) { - this.context.logger.error("Error getting issue", error); + this.context.logger.error("Error getting issue", { err: error }); return null; } return data; @@ -43,7 +43,7 @@ export class Issue extends SuperSupabase { max_results: 10, }); if (error) { - this.context.logger.error("Error finding similar issues", error); + this.context.logger.error("Error finding similar issues", { err: error }); return []; } return data;