call absl::SetStderrThreshold before InitGoogle

This commit is contained in:
Corentin Le Molgat
2025-02-24 17:34:14 +01:00
committed by Mizux Seiha
parent c451a7d875
commit bdfbbc6809
6 changed files with 6 additions and 6 deletions

View File

@@ -148,8 +148,8 @@ void CPIsFunCp() {
} // namespace operations_research
int main(int argc, char** argv) {
InitGoogle(argv[0], &argc, &argv, true);
absl::SetStderrThreshold(absl::LogSeverityAtLeast::kInfo);
InitGoogle(argv[0], &argc, &argv, true);
operations_research::CPIsFunCp();
return EXIT_SUCCESS;
}

View File

@@ -198,8 +198,8 @@ void SolveJobShopExample() {
} // namespace operations_research
int main(int argc, char** argv) {
InitGoogle(argv[0], &argc, &argv, true);
absl::SetStderrThreshold(absl::LogSeverityAtLeast::kInfo);
InitGoogle(argv[0], &argc, &argv, true);
operations_research::SolveJobShopExample();
return EXIT_SUCCESS;
}

View File

@@ -205,8 +205,8 @@ void SolveNursesExample() {
} // namespace operations_research
int main(int argc, char** argv) {
InitGoogle(argv[0], &argc, &argv, true);
absl::SetStderrThreshold(absl::LogSeverityAtLeast::kInfo);
InitGoogle(argv[0], &argc, &argv, true);
operations_research::SolveNursesExample();
return EXIT_SUCCESS;
}

View File

@@ -61,8 +61,8 @@ void RunConstraintProgrammingExample() {
} // namespace operations_research
int main(int argc, char** argv) {
InitGoogle(argv[0], &argc, &argv, true);
absl::SetStderrThreshold(absl::LogSeverityAtLeast::kInfo);
InitGoogle(argv[0], &argc, &argv, true);
operations_research::RunConstraintProgrammingExample();
return EXIT_SUCCESS;
}

View File

@@ -202,8 +202,8 @@ void SolveProblem(SolveType solve_type) {
} // namespace operations_research
int main(int argc, char** argv) {
InitGoogle(argv[0], &argc, &argv, true);
absl::SetStderrThreshold(absl::LogSeverityAtLeast::kInfo);
InitGoogle(argv[0], &argc, &argv, true);
operations_research::SolveProblem(operations_research::LNS);
operations_research::SolveProblem(operations_research::LS);
operations_research::SolveProblem(operations_research::LS_WITH_FILTER);

View File

@@ -321,8 +321,8 @@ void StiglerDiet() {
} // namespace operations_research
int main(int argc, char** argv) {
InitGoogle(argv[0], &argc, &argv, true);
absl::SetStderrThreshold(absl::LogSeverityAtLeast::kInfo);
InitGoogle(argv[0], &argc, &argv, true);
operations_research::StiglerDiet();
return EXIT_SUCCESS;
}