Skip to content

Commit c0b3c66

Browse files
committed
call absl::SetStderrThreshold before InitGoogle
1 parent 19e27b8 commit c0b3c66

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

ortools/constraint_solver/samples/cp_is_fun_cp.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ void CPIsFunCp() {
148148
} // namespace operations_research
149149

150150
int main(int argc, char** argv) {
151-
InitGoogle(argv[0], &argc, &argv, true);
152151
absl::SetStderrThreshold(absl::LogSeverityAtLeast::kInfo);
152+
InitGoogle(argv[0], &argc, &argv, true);
153153
operations_research::CPIsFunCp();
154154
return EXIT_SUCCESS;
155155
}

ortools/constraint_solver/samples/minimal_jobshop_cp.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,8 @@ void SolveJobShopExample() {
198198
} // namespace operations_research
199199

200200
int main(int argc, char** argv) {
201-
InitGoogle(argv[0], &argc, &argv, true);
202201
absl::SetStderrThreshold(absl::LogSeverityAtLeast::kInfo);
202+
InitGoogle(argv[0], &argc, &argv, true);
203203
operations_research::SolveJobShopExample();
204204
return EXIT_SUCCESS;
205205
}

ortools/constraint_solver/samples/nurses_cp.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,8 @@ void SolveNursesExample() {
205205
} // namespace operations_research
206206

207207
int main(int argc, char** argv) {
208-
InitGoogle(argv[0], &argc, &argv, true);
209208
absl::SetStderrThreshold(absl::LogSeverityAtLeast::kInfo);
209+
InitGoogle(argv[0], &argc, &argv, true);
210210
operations_research::SolveNursesExample();
211211
return EXIT_SUCCESS;
212212
}

ortools/constraint_solver/samples/rabbits_and_pheasants_cp.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ void RunConstraintProgrammingExample() {
6161
} // namespace operations_research
6262

6363
int main(int argc, char** argv) {
64-
InitGoogle(argv[0], &argc, &argv, true);
6564
absl::SetStderrThreshold(absl::LogSeverityAtLeast::kInfo);
65+
InitGoogle(argv[0], &argc, &argv, true);
6666
operations_research::RunConstraintProgrammingExample();
6767
return EXIT_SUCCESS;
6868
}

ortools/constraint_solver/samples/simple_ls_program.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,8 @@ void SolveProblem(SolveType solve_type) {
202202
} // namespace operations_research
203203

204204
int main(int argc, char** argv) {
205-
InitGoogle(argv[0], &argc, &argv, true);
206205
absl::SetStderrThreshold(absl::LogSeverityAtLeast::kInfo);
206+
InitGoogle(argv[0], &argc, &argv, true);
207207
operations_research::SolveProblem(operations_research::LNS);
208208
operations_research::SolveProblem(operations_research::LS);
209209
operations_research::SolveProblem(operations_research::LS_WITH_FILTER);

0 commit comments

Comments
 (0)