Skip to content

Commit

Permalink
fix(core.gbapp): Logging improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Oct 27, 2020
1 parent 2083755 commit b2159b0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/core.gbapp/services/GBConversationalService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -498,9 +498,10 @@ export class GBConversationalService {
}

let nlpActive = false;
let score = 0;

Object.keys(nlp.intents).forEach(name => {
const score = nlp.intents[name].score;
score = nlp.intents[name].score;
if (score > min.instance.nlpScore) {
nlpActive = true;
}
Expand All @@ -515,7 +516,7 @@ export class GBConversationalService {
return false;
}

GBLog.info(`NLP called: ${intent}, entities: ${nlp.entities}`);
GBLog.info(`NLP called: ${intent}, entities: ${nlp.entities.length}, score: ${score} > required (nlpScore): ${min.instance.nlpScore}`);

try {
step.activeDialog.state.options.entities = nlp.entities;
Expand Down

0 comments on commit b2159b0

Please sign in to comment.