jdx / mise-action

MIT License
59 stars 7 forks source link

Set `log_level` to `debug` when rerunning a job with debugging #128

Closed xremming closed 1 month ago

xremming commented 1 month ago

Not quite sure what variable needs to be read but based on prior experience and a quick glance at the docs this seems possible.

Basically I am wishing that when a run fails and you use the "Re-run failed jobs" with "Enable debug logging" it would automatically always set the log_level to debug.

xremming commented 4 weeks ago

@jdx I realized that the changes from #129 don't actually work since the log_level defaults to info in the action.yml file. I'll make a PR later today to restore the behaviour that I did originally, always overriding the process.env["MISE_LOG_LEVEL"] when running in debug mode. 🤦🏼

jdx commented 4 weeks ago

Doh, I should've tested the most recent change myself

xremming commented 4 weeks ago

Classic case of only testing the initial changes and not the ones getting merged.

Would love to write a test case for this but I have no idea how to do that... 🤔 Looks like debug mode can be enabled with an environment variable but is there a way to check the output includes debug output in a nice way? 🤔