Skip to content

Use log instead of print for system start status messages#1889

Open
adityabagchi24 wants to merge 6 commits into
apple:mainfrom
adityabagchi24:fix
Open

Use log instead of print for system start status messages#1889
adityabagchi24 wants to merge 6 commits into
apple:mainfrom
adityabagchi24:fix

Conversation

@adityabagchi24

Copy link
Copy Markdown
Contributor

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Fixes #1888

Motivation and Context

Two status messages in container system start were using print() (stdout) instead of the log object (stderr via StderrLogHandler). Per project convention, informational and warning messages should use the Logger.

Testing

  • Tested locally
  • Added/updated tests
  • Added/updated docs

@adityabagchi24 adityabagchi24 changed the title Use log object instead of print for system start status messages Use log instead of print for system start status messages Jul 3, 2026
stephenlclarke added a commit to stephenlclarke/container that referenced this pull request Jul 11, 2026
Port the focused output correction from apple#1889 so informational startup and missing-kernel status use the command logger while the interactive prompt remains on stdout.

Upstream-Ref: apple#1889

Bug-Ref: apple#1888

Release-Highlight: Ports apple#1889 for apple#1888: container system start keeps machine and kernel status out of command stdout, making scripted startup output reliable.
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

Successfully merging this pull request may close these issues.

[Bug]: Fix log output that should go to stderr in container system start.

1 participant