From a460c6cd0dea1f9f52dfb6e81b7ea317c14c5359 Mon Sep 17 00:00:00 2001 From: Eric Zhou Date: Mon, 7 Feb 2022 19:35:48 -0800 Subject: [PATCH] fix: rename dryrun to explain --- src/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/index.js b/src/index.js index ae39fc25..b44234d3 100644 --- a/src/index.js +++ b/src/index.js @@ -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; @@ -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()); }); } @@ -152,7 +152,7 @@ exports.TRAPIQueryHandler = class TRAPIQueryHandler { // this.logs = [...this.logs, ...edgeConverter.logs]; } - if (this.options.dryrun) { + if (this.options.explain) { return false; }