Skip to content

snap server - log enabled/disabled in config overview#10039

Open
macfarla wants to merge 3 commits intobesu-eth:mainfrom
macfarla:snap-server-startup-log
Open

snap server - log enabled/disabled in config overview#10039
macfarla wants to merge 3 commits intobesu-eth:mainfrom
macfarla:snap-server-startup-log

Conversation

@macfarla
Copy link
Contributor

PR description

to make it clear for node operators, if sync mode is snap, log whether or not snap server is enabled.

looks like this:

#                                                                                                  #
# Besu version 26.3-develop-604899c                                                                #
#                                                                                                  #
# Configuration:                                                                                   #
# Network: Ephemery                                                                                #
# Network Id: 39438157                                                                             #
# Data storage: Bonsai                                                                             #
# Sync mode: Snap                                                                                  #
#   SNAP Sync server disabled                                                                      #
# Sync min peers: 5                                                                                #

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
@macfarla macfarla added the dev experience The build system, things that enable easier development etc. label Mar 13, 2026
Copilot AI review requested due to automatic review settings March 13, 2026 00:51
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the configuration overview output to explicitly show whether the SNAP sync server is enabled or disabled when running in SNAP sync mode, improving clarity for node operators.

Changes:

  • Add SNAP sync server enabled/disabled line under “Sync mode” when sync mode is SNAP
  • Remove the previously unconditional “Snap Sync server enabled” line

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines +481 to +485
if (isSnapServerEnabled) {
lines.add(" SNAP Sync server enabled");
} else {
lines.add(" SNAP Sync server disabled");
}

if (syncMode != null) {
lines.add("Sync mode: " + syncMode);
if (syncMode.equalsIgnoreCase("SNAP")) {
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dev experience The build system, things that enable easier development etc. snapsync

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants