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 48
48
namespace hydra {
49
49
50
50
struct RunSettings {
51
+ bool show_run_settings = true ;
51
52
size_t robot_id = 0 ;
52
53
bool exit_after_clock = false ;
53
54
bool force_shutdown = false ;
@@ -63,6 +64,7 @@ struct RunSettings {
63
64
void declare_config (RunSettings& config) {
64
65
using namespace config ;
65
66
name (" RunSettings" );
67
+ field (config.show_run_settings , " show_run_settings" );
66
68
field (config.robot_id , " robot_id" );
67
69
field (config.exit_after_clock , " exit_after_clock" );
68
70
field (config.force_shutdown , " force_shutdown" );
@@ -133,7 +135,9 @@ int main(int argc, char* argv[]) {
133
135
}
134
136
135
137
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
+ }
137
141
138
142
[[maybe_unused]] const auto plugins = config::loadExternalFactories (settings.paths );
139
143
You can’t perform that action at this time.
0 commit comments