Skip to content

Commit 63d4550

Browse files
Updated logs
1 parent 90e17f1 commit 63d4550

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

backendsrc/embeddingsHandler.js

+1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ class embeddingsHandler {
7474
const description = [issueDescription];
7575

7676
if (this.debugDisableEmbeddings) {
77+
console.log("Embeddings are disabled")
7778
return [];
7879
}
7980

backendsrc/webDataHandler.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -2143,21 +2143,23 @@ class WebDataHandler {
21432143
async getSimilarIssues(queryData) {
21442144
const { organizationName, repoName, issueTitle, issueBody } = queryData;
21452145

2146+
console.log("In data: ", queryData);
2147+
21462148
let issueDescription = GetDescription(issueTitle, issueBody) // to do rewrite to take in issue title and body
21472149

21482150
let dbRepoName = (organizationName + "/" + repoName).toLowerCase();
21492151

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

2152-
console.log("Started getsimilarissues request");
2154+
console.log("Repo short URL: ", repo.shortURL);
21532155

21542156
if (repo == null) {
21552157
throw "Repo not found";
21562158
}
21572159

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

2160-
console.log("Got issue");
2162+
console.log("Issue title if it exists: ", issue?.title);
21612163

21622164
let similarIssueIDArray = await this.embeddingsHandler.getSimilarIssueIDs(repo, issueDescription, issue);
21632165

@@ -2176,7 +2178,7 @@ class WebDataHandler {
21762178
}
21772179
});
21782180

2179-
console.log("Returning return array");
2181+
console.log("Return array: ", returnArray);
21802182

21812183
return returnArray;
21822184
}

0 commit comments

Comments
 (0)