library
library copied to clipboard
Set log level correctly
Description of Change
The order of operations meant that previously when the LOG_LEVEL environment value was set, its value was ignored and instead we always set the log level to debug. This PR adds tests and fixes the bug.
Checklist
- [x] Ran
npm run lint
and updated code style accordingly - [x]
npm run test
passes - [x] PR has a description and all contributors/stakeholder are noted/cc'ed
- [x] tests are updated and/or added to cover new code
- [ ] relevant documentation is changed and/or added