StackStorm / StackStorm/st2

if action log_level == DEBUG and config python_runner_log_level is INFO cannot debug log

Open
#5,466 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

stale
Dominant language
Python
Stars
6.5k
Forks
787
PR merge metrics
No merged PRs in 30d

Description

https://github.com/StackStorm/st2/blob/007beed8325b397d540d97905af8f2edb14b925f/contrib/runners/python_runner/python_runner/python_runner.py#L128

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.