File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 4848namespace hydra {
4949
5050struct RunSettings {
51+ bool show_run_settings = true ;
5152 size_t robot_id = 0 ;
5253 bool exit_after_clock = false ;
5354 bool force_shutdown = false ;
@@ -63,6 +64,7 @@ struct RunSettings {
6364void declare_config (RunSettings& config) {
6465 using namespace config ;
6566 name (" RunSettings" );
67+ field (config.show_run_settings , " show_run_settings" );
6668 field (config.robot_id , " robot_id" );
6769 field (config.exit_after_clock , " exit_after_clock" );
6870 field (config.force_shutdown , " force_shutdown" );
@@ -133,7 +135,9 @@ int main(int argc, char* argv[]) {
133135 }
134136
135137 config::Settings ().setLogger (" glog" );
136- LOG (INFO) << " Using node settings\n " << config::toString (settings);
138+ if (settings.show_run_settings ) {
139+ LOG (INFO) << " Using node settings\n " << config::toString (settings);
140+ }
137141
138142 [[maybe_unused]] const auto plugins = config::loadExternalFactories (settings.paths );
139143
You can’t perform that action at this time.
0 commit comments