if action log_level == DEBUG and config python_runner_log_level is INFO cannot debug log
Open
Nobody has claimed this yet.
stale
- Dominant language
- Python
- Stars
- 6.5k
- Forks
- 787
- PR merge metrics
- No merged PRs in 30d
Description
Cannot log DEBUG from python action if the config setting for python_runner_log_level under actions in st2.log is set to something other than DEBUG.
The reason is the above line checks if the log_level = DEBUG and if so it just uses the config setting in st2.log
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at contrib/runners/python_runner/python_runner/python_runner.py around line 128 and inspect how the action log_level is combined with python_runner_log_level from st2.log. Reproduce the case with an action at DEBUG and the configuration at INFO, then verify that the resulting logging behavior matches the intended DEBUG setting.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend, observability
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100