Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renovate log level input #40

Closed
viceice opened this issue Jan 8, 2021 · 6 comments
Closed

Renovate log level input #40

viceice opened this issue Jan 8, 2021 · 6 comments

Comments

@viceice
Copy link

viceice commented Jan 8, 2021

Is your feature request related to a problem? Please describe.
If you enable renovate log level via config or cli it will miss some important messages.

Describe the solution you'd like
Please add an input to simply allow renovate log level config via environment. Renovate will parse LOG_LEVEL env very early, so no log messages are missing.

Describe alternatives you've considered
no alternate

Additional context
ref #39

@viceice
Copy link
Author

viceice commented Jan 8, 2021

Additional env can be passed as third parameter to tasklib.exec

await taskLib.exec(options!.tool, options!.arguments);

eg:

await taskLib.exec(options!.tool, options!.arguments, { env: { LOG_LEVEL: logLevel} });

ref:

@jycouet
Copy link
Owner

jycouet commented Jan 13, 2021

Isn't it possible to put this in arguments already?

@viceice
Copy link
Author

viceice commented Jan 13, 2021

Sure, but them some important debug messages are missing which are very helpful to debug config issues.

The commandline args are parsed to late, so we will miss those messages

@viceice
Copy link
Author

viceice commented Jan 14, 2021

logLevel option is now deprecated: renovatebot/renovate#8291

@jycouet
Copy link
Owner

jycouet commented Jan 14, 2021

It seems that I have to do an update ;)

@jycouet
Copy link
Owner

jycouet commented Feb 24, 2021

Actually, as now it's recommended to use environment variable, I suggest that you do this setting like this:
image

@jycouet jycouet closed this as completed Feb 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants