botpress / nlu

This repo contains every ML/NLU related code written by Botpress in the NodeJS environment. This includes the Botpress Standalone NLU Server.
23 stars 21 forks source link

fix(logger): launcher debug logs are not displayed by default when verbose is 4 #49

Closed franklevasseur closed 3 years ago

franklevasseur commented 3 years ago

Basically, if verbose is 4, you have to specify --log-filter Launcher to get the debug of filters.

This is done by 2 things:

  1. log filter can be undefined which results in no filters being applied
  2. There is a logger config called minLevel which allows to bypass log filters if level is reached. This field is used by Launcher logger.

I took the opportunity to fix a changelog mess I did earlier today + change the env variable STAN_JSON_CONFIG by NLU_SERVER_CONFIG. This env variable is meant to be used only by the main botpress server anyway.