@@ -35,6 +35,7 @@ void SetUpCoordinatorSubCommands(CLI::App &app) {
35
35
SetUpGetRegionMap (app);
36
36
SetUpGetJobList (app);
37
37
SetUpCleanJobList (app);
38
+ SetUpChangeLogLevel (app);
38
39
// region commands
39
40
SetUpAddPeerRegion (app);
40
41
SetUpRemovePeerRegion (app);
@@ -60,7 +61,6 @@ void SetUpCoordinatorSubCommands(CLI::App &app) {
60
61
61
62
// balance
62
63
SetUpEnableOrDisableBalance (app);
63
-
64
64
}
65
65
66
66
bool GetBrpcChannel (const std::string &location, brpc::Channel &channel) {
@@ -612,9 +612,9 @@ void RunChangeLogLevel(GetChangeLogLevelOption const &opt) {
612
612
DINGO_LOG (WARNING) << " Fail to send request to : " << cntl.ErrorText ();
613
613
}
614
614
615
- DINGO_LOG (INFO) << request.DebugString ();
616
- DINGO_LOG (INFO) << ::dingodb::pb::node::LogLevel_descriptor ()->FindValueByNumber (request.log_level ())->name ();
617
- DINGO_LOG (INFO) << response.DebugString ();
615
+ std::cout << request.DebugString () << std::endl ;
616
+ std::cout << ::dingodb::pb::node::LogLevel_descriptor ()->FindValueByNumber (request.log_level ())->name () << std::endl ;
617
+ std::cout << response.DebugString () << std::endl ;
618
618
}
619
619
620
620
void SetUpHello (CLI::App &app) {
@@ -2791,9 +2791,11 @@ void SetUpEnableOrDisableBalance(CLI::App &app) {
2791
2791
auto opt = std::make_shared<EnableOrDisableBalanceOptions>();
2792
2792
auto *cmd = app.add_subcommand (" DisableBalance" , " DisableBalance " )->group (" Coordinator Command" );
2793
2793
cmd->add_option (" --coor_url" , opt->coor_url , " Coordinator url, default:file://./coor_list" );
2794
- cmd->add_option (" --balance_leader" , opt->enable_balance_leader , " Request parameter enable_balance_leader true or false" )
2794
+ cmd->add_option (" --balance_leader" , opt->enable_balance_leader ,
2795
+ " Request parameter enable_balance_leader true or false" )
2795
2796
->required ();
2796
- cmd->add_option (" --balance_region" , opt->enable_balance_region , " Request parameter enable_balance_region true or false" )
2797
+ cmd->add_option (" --balance_region" , opt->enable_balance_region ,
2798
+ " Request parameter enable_balance_region true or false" )
2797
2799
->required ();
2798
2800
cmd->callback ([opt]() { RunEnableOrDisableBalance (*opt); });
2799
2801
}
0 commit comments