Skip to content

Commit 90e17f1

Browse files
Updated web data handler with logs
1 parent 2764ceb commit 90e17f1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

backendsrc/webDataHandler.js

+6
Original file line numberDiff line numberDiff line change
@@ -2149,12 +2149,16 @@ class WebDataHandler {
21492149

21502150
let repo = await this.RepoDetails.findOne({ shortURL: dbRepoName });
21512151

2152+
console.log("Started getsimilarissues request");
2153+
21522154
if (repo == null) {
21532155
throw "Repo not found";
21542156
}
21552157

21562158
let issue = await this.IssueDetails.findOne({ title: issueTitle, repoRef: repo._id });
21572159

2160+
console.log("Got issue");
2161+
21582162
let similarIssueIDArray = await this.embeddingsHandler.getSimilarIssueIDs(repo, issueDescription, issue);
21592163

21602164
// Make a new array that finds each issue with the id specified in the array above
@@ -2172,6 +2176,8 @@ class WebDataHandler {
21722176
}
21732177
});
21742178

2179+
console.log("Returning return array");
2180+
21752181
return returnArray;
21762182
}
21772183
}

0 commit comments

Comments
 (0)