ptarmiganlabs / butler-spyglass

Utility for extracting data lineage and load scripts for all applications in a Qlik Sense Enterprise environment
https://ptarmiganlabs.com
MIT License
13 stars 2 forks source link

Configuration Property "ButtlerSpyglass.loglevel" is not defined #35

Closed Freighar closed 3 years ago

Freighar commented 3 years ago

Describe the bug Hello, i followed the instruction using node.js but when i run "node.js" i get an error. I renamed the config file "Production.yaml" but i cannot make it work.

To Reproduce I just installed using npm and then run node index.js.

Expected behavior A clear and concise description of what you expected to happen.

Screenshots Error

Describe environment:

Config file(s) What's the content of the config file(s) you use? Please make sure to remove all sensitive information before posting it here.

Additional context Add any other context about the problem here.

mountaindude commented 3 years ago

Ah, maybe you didn't set the NODE_ENV environment variable..?

I totally agree the instructions could be better there. The Docker section does mention it, but it's not mentioned in the Run from command line section.

Butler Spyglass' sibling project Butler has a way more comprehensive doc site at butler.ptarmiganlabs.com.

There you find a thorough explanation of how the config file naming works.

To sum it up: If your config file is called production.yaml, you should set the NODE_ENV environment variable to production. See the Butler docs for examples.

Freighar commented 3 years ago

Yeah that made it work!

thanks a lot!