Skip to content

ntsketest: add slog.Debug [ntp] trace for the NTPv4 phase - #575

Closed
sofiascalzo wants to merge 1 commit into
facebook:mainfrom
sofiascalzo:export-D114046448
Closed

ntsketest: add slog.Debug [ntp] trace for the NTPv4 phase#575
sofiascalzo wants to merge 1 commit into
facebook:mainfrom
sofiascalzo:export-D114046448

Conversation

@sofiascalzo

Copy link
Copy Markdown

Summary:
Emit per-step [ntp] traces (target resolved, request built, dialed, request
sent, response received) via slog.Debug so the NTPv4 round-trip can be debugged,
e.g. pinning down connection-refused failures to the resolved ntp addr. The
default slog handler is set to debug level so the traces are visible.

Also resolve the NTP target from the KE reply: prefer --ntp-addr, then the
KE-advertised server/port (HandshakeResult.NTPServer/NTPPort), then :123.

Reviewed By: leoleovich

Differential Revision: D114046448

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 5, 2026
@meta-codesync

meta-codesync Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

@sofiascalzo has exported this pull request. If you are a Meta employee, you can view the originating Diff in D114046448.

Summary:
Emit per-step [ntp] traces (target resolved, request built, dialed, request
sent, response received) via slog.Debug so the NTPv4 round-trip can be debugged,
e.g. pinning down connection-refused failures to the resolved ntp addr. The
default slog handler is set to debug level so the traces are visible.

Also resolve the NTP target from the KE reply: prefer --ntp-addr, then the
KE-advertised server/port (HandshakeResult.NTPServer/NTPPort), then <KE host>:123.

Reviewed By: leoleovich

Differential Revision: D114046448
@meta-codesync

meta-codesync Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

This pull request has been merged in b8d86fc.

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

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant