question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

LOG_LEVEL is not picked up from .env

See original GitHub issue

Bug 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:closed
  • Created 4 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
issue-label-bot[bot]commented, Oct 7, 2019

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.

0reactions
gr2mcommented, Aug 31, 2020

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found