Skip to content

[3007.x] print minion output, mirror salt-ssh log level - #66952

Open
dead10ck wants to merge 2 commits into
saltstack:3007.xfrom
dead10ck:ssh/logging
Open

[3007.x] print minion output, mirror salt-ssh log level#66952
dead10ck wants to merge 2 commits into
saltstack:3007.xfrom
dead10ck:ssh/logging

Conversation

@dead10ck

@dead10ck dead10ck commented Oct 9, 2024

Copy link
Copy Markdown
Contributor

What does this PR do?

What issues does this PR fix or reference?

Fixes #66951

New Behavior

Minion logs are logged to stderr. Log level matches that of salt-ssh.

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

No

@dead10ck
dead10ck requested a review from a team as a code owner October 9, 2024 00:27
@salt-project-bot-prod-environment salt-project-bot-prod-environment Bot changed the title print minion output, mirror salt-ssh log level [3007.x] print minion output, mirror salt-ssh log level Oct 9, 2024
@dead10ck
dead10ck force-pushed the ssh/logging branch 2 times, most recently from 559901c to d61cfc2 Compare October 9, 2024 02:09

@twangboy twangboy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we get a test, please?

@twangboy twangboy added this to the Chlorine v3007.9 milestone Sep 19, 2025
@twangboy

Copy link
Copy Markdown
Contributor

Please rebase and fix conflicts

dead10ck and others added 2 commits June 26, 2026 04:48
- test_cmd_str_includes_log_level: verifies OPTIONS.log_level in the
  base64-encoded shim payload matches the master log_level
- test_cmd_str_log_level_defaults_to_info: verifies default when unset
- test_shim_cmd_passes_print_output_to_exec_cmd: propagation through
  Single.shim_cmd -> Shell.exec_cmd
- test_cmd_block_passes_print_output_to_shim_cmd: propagation through
  Single.cmd_block -> shim_cmd
- test_run_cmd_print_output_streams_stdout_stderr: Shell._run_cmd with
  print_output=True writes to sys.stdout/stderr
- test_exec_cmd_passes_print_output_to_run_cmd: Shell.exec_cmd passes
  the flag through to _run_cmd
@twangboy

twangboy commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Please fix the failing tests and address the merge conflicts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:full Run the full test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] salt-ssh does not log minion output

4 participants