Skip to content

Commit

Permalink
fix: 🐛 change log level to warning if no smartapi edge found
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinxin90 committed Jan 26, 2021
1 parent ed921d4 commit 082759f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/QueryGraphHandler/qedge2bteedge.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ module.exports = class QEdge2BTEEdgeHandler {
return item;
});
if (smartapi_edges.length === 0) {
this.logs.push(new LogEntry("DEBUG", null, `BTE didn't find any smartapi edges corresponding to ${qEdge.getID()}`).getLog())
this.logs.push(new LogEntry("WARNING", null, `BTE didn't find any smartapi edges corresponding to ${qEdge.getID()}`).getLog())
} else {
this.logs.push(new LogEntry("DEBUG", null, `BTE found ${smartapi_edges.length} smartapi edges corresponding to ${qEdge.getID()}. These smartaip edges comes from ${new Set(this._findAPIsFromSmartAPIEdges(smartapi_edges)).size} unique APIs. They are ${Array.from(new Set(this._findAPIsFromSmartAPIEdges(smartapi_edges))).join(',')}`).getLog())
}
Expand Down

0 comments on commit 082759f

Please sign in to comment.