Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print non-default options on startup/shutdown #1412

Merged
merged 3 commits into from
Jul 18, 2023
Merged

Conversation

heifner
Copy link
Member

@heifner heifner commented Jul 17, 2023

Log all non-default command line options and config.ini options on startup and on program exit.

Example:

info  2023-07-17T16:59:13.936 nodeos    main.cpp:154                  operator()           ] nodeos version v4.1.0-dev v4.1.0-dev-d243f8569d5f8baf55bfb787a481530998a15d93-dirty
info  2023-07-17T16:59:13.936 nodeos    main.cpp:61                   log_non_default_opti ] Non-default options: data-dir = d, config-dir = mainconfig, enable-stale-production, producer-name = eosio, signature-provider = ***, chain-state-db-size-mb = 65536, p2p-peer-address = peer.main.alohaeos.com:9876, p2p-peer-address = p2p.eosargentina.io:9876, p2p-peer-address = p2p.genereos.io:9876, p2p-peer-address = eos.defibox.xyz:9876, p2p-peer-address = eos.edenia.cloud:9876, p2p-peer-address = p2p.eos.cryptolions.io:9876, p2p-peer-address = p2p.donates2eden.io:9876, p2p-peer-address = p2p.eos42.io:9876, p2p-peer-address = mainnet.eosamsterdam.net:9876, p2p-peer-address = mainnet.eosarabia.net:3571, p2p-peer-address = p2p2.eoseoul.io:30333, p2p-peer-address = p2p.eosflare.io:9876, p2p-peer-address = p2p.bitmars.one:8080, p2p-peer-address = p2p.eos.detroitledger.tech:1337, p2p-peer-address = peer.eosio.sg:9876, p2p-peer-address = eos.seed.eosnation.io:9876, p2p-peer-address = peer1.eosphere.io:9876, p2p-peer-address = p2p.eossweden.org:9876, p2p-peer-address = eos.p2p.eosusa.io:9882
info  2023-07-17T16:59:13.936 nodeos    main.cpp:231                  main                 ] nodeos successfully exiting

Requires AntelopeIO/appbase#30
Resovles #1279

@heifner heifner added the OCI Work exclusive to OCI team label Jul 17, 2023
@heifner heifner requested review from greg7mdp and linh2931 July 17, 2023 17:00
Comment on lines 35 to 37
if (op.string_key == "signature-provider"
|| op.string_key == "peer-private-key"
|| op.string_key == "p2p-auto-bp-peer") {
Copy link
Contributor

Choose a reason for hiding this comment

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

use std::string litterals ""s.

@heifner heifner merged commit 98bbe9d into main Jul 18, 2023
@heifner heifner deleted the GH-1279-print-options branch July 18, 2023 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCI Work exclusive to OCI team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Log all non-default config.ini and command line options on nodeos startup/shutdown
3 participants