LOG_LEVEL is not picked up from .env
See original GitHub issueBug Report
Current Behavior
It seems that probot
doesn’t pick up the LOG_LEVEL
environment value from .env
for some reason. If I pass it via the CLI, it seems to work fine, e.g. LOG_LEVEL=trace yarn dev
. Other variables also work fine.
LOG_LEVEL=trace
Expected behavior/code
I would expect .env
values to be respected
Environment
- Probot version(s): [9.5.0]
- Node/yarn version: [10.16.3/1.19.0]
- OS: [OSX 10.14.6]
Possible Solution Passing the variable as a parameter
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
allow setting logLevel based on env variable #124 - GitHub
But I believe that's the reason the env var LOG_LEVEL exists, so many programs run with the same log level, where the user...
Read more >Set Logging Level in Spring Boot via Environment Variable
I've tried setting env vars like LOGGING_LEVEL_ORG_SPRINGFRAMEWORK=TRACE but that has no effect. Putting logging.
Read more >Changing log level at runtime using Winston logger
Changing log level at runtime using Winston logger in NodeJS application. ... 1// Express pickup updated environment variables.
Read more >Why isn't my ASP.NET Core environment-specific ...
I was recently standing up a new ASP.NET Core application running in Docker, and I was seeing some very strange behaviour.
Read more >Why you should stop using env variables for NPM modules
There is no guarantee that changes at runtime of an environment variable will be picked up by a library either, as this is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Issue-Label Bot is automatically applying the label
bug 🐞
to this issue, with a confidence of 0.97. Please mark this comment with 👍 or 👎 to give our bot feedback!Links: app homepage, dashboard and code for this bot.
no worries, I appreciate you testing the new Probot version! It’s perfect timing, tomorrow I’ll release Probot v10 to
@latest
on npm, any bugs we can catch before that will safe a lot of time