Skip to content

Commit

Permalink
fix: rename dryrun to explain
Browse files Browse the repository at this point in the history
  • Loading branch information
ericz1803 committed Feb 8, 2022
1 parent 57d8e00 commit a460c6c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ exports.TRAPIQueryHandler = class TRAPIQueryHandler {
const edgeConverter = new QEdge2BTEEdgeHandler([current_edge], kg);
const sAPIEdges = edgeConverter.getSmartAPIEdges(current_edge);

if (this.options.dryrun) {
if (this.options.explain) {
let apiNames = [...new Set(sAPIEdges.map((apiEdge) => apiEdge.association.api_name))];

let log_msg;
Expand All @@ -138,7 +138,7 @@ exports.TRAPIQueryHandler = class TRAPIQueryHandler {

sAPIEdges.forEach(apiEdge => {
log_msg = `${apiEdge.association.api_name}: ${apiEdge.association.input_type} > ${apiEdge.association.predicate} > ${apiEdge.association.output_type}`;
this.logs.push(new LogEntry("TRACE", null, log_msg).getLog());
this.logs.push(new LogEntry("DEBUG", null, log_msg).getLog());
});
}

Expand All @@ -152,7 +152,7 @@ exports.TRAPIQueryHandler = class TRAPIQueryHandler {
// this.logs = [...this.logs, ...edgeConverter.logs];
}

if (this.options.dryrun) {
if (this.options.explain) {
return false;
}

Expand Down

0 comments on commit a460c6c

Please sign in to comment.