Skip to content

cleanup the systemd debug notification logging - #13400

Merged
mikebrow merged 1 commit into
containerd:mainfrom
mikebrow:clean-up-systemd-notificaiton-logging
May 14, 2026
Merged

mikebrow merged 1 commit into
containerd:mainfrom
mikebrow:clean-up-systemd-notificaiton-logging

Conversation

@mikebrow

@mikebrow mikebrow commented May 13, 2026 •

Copy link
Copy Markdown
Member

debug log output before PR:

DEBU[2026-05-13T12:24:11.459266289-05:00] sd notification                               notified=false state="READY=1"

requires insider knowledge to decode.. and it's the next to last log message on startup ...

PR makes it a bit more human readable :-)

after:

DEBU[2026-05-13T14:30:43.405952987-05:00] systemd notification is not sent (i.e. NOTIFY_SOCKET is unset)  notified=false state="READY=1"

errors continue to be reported back to caller... double logging on error path is corrected

Copilot AI review requested due to automatic review settings May 13, 2026 19:10
@github-project-automation github-project-automation Bot moved this to Needs Triage in Pull Request Review May 13, 2026

Copilot AI 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.

Pull request overview

This PR refines containerd’s systemd sd_notify debug logging to be more human-readable, especially when notifications are skipped because systemd integration isn’t active (e.g., NOTIFY_SOCKET unset).

Changes:

  • Replaces the generic "sd notification" debug message with explicit success vs “not sent” messages.
  • Stops logging the notified boolean field and instead encodes the outcome in the message text.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mikebrow
mikebrow force-pushed the clean-up-systemd-notificaiton-logging branch from 4134f36 to 3de826c Compare May 13, 2026 19:32
Copilot AI review requested due to automatic review settings May 13, 2026 19:46
@mikebrow
mikebrow force-pushed the clean-up-systemd-notificaiton-logging branch from 3de826c to 66656f0 Compare May 13, 2026 19:46

Copilot AI 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.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.

@mikebrow
mikebrow force-pushed the clean-up-systemd-notificaiton-logging branch from 66656f0 to 4e9a7d7 Compare May 13, 2026 19:57
Copilot AI review requested due to automatic review settings May 13, 2026 19:58
@mikebrow
mikebrow force-pushed the clean-up-systemd-notificaiton-logging branch from 4e9a7d7 to 3928437 Compare May 13, 2026 19:58

Copilot AI 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.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.

@mikebrow
mikebrow force-pushed the clean-up-systemd-notificaiton-logging branch from 3928437 to 89d7199 Compare May 13, 2026 20:01
Copilot AI review requested due to automatic review settings May 14, 2026 13:32
@mikebrow
mikebrow force-pushed the clean-up-systemd-notificaiton-logging branch from 89d7199 to 3e262e5 Compare May 14, 2026 13:32

Copilot AI 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.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Signed-off-by: Mike Brown <[email protected]>
Co-authored-by: Sebastiaan van Stijn <[email protected]>
@mikebrow
mikebrow force-pushed the clean-up-systemd-notificaiton-logging branch from 3e262e5 to 7b16047 Compare May 14, 2026 13:36
@mikebrow
mikebrow requested a review from samuelkarp May 14, 2026 13:37

@thaJeztah thaJeztah left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, thanks!

@github-project-automation github-project-automation Bot moved this from Needs Triage to Review In Progress in Pull Request Review May 14, 2026
@mxpv
mxpv added this pull request to the merge queue May 14, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks May 14, 2026
@mikebrow
mikebrow added this pull request to the merge queue May 14, 2026
Merged via the queue into containerd:main with commit 00601b2 May 14, 2026
135 of 140 checks passed
@github-project-automation github-project-automation Bot moved this from Review In Progress to Done in Pull Request Review May 14, 2026
@mikebrow
mikebrow deleted the clean-up-systemd-notificaiton-logging branch May 14, 2026 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

6 participants