diff --git a/examples/cpp/xpress_use.cc b/examples/cpp/xpress_use.cc index 600918e762..aac79913b3 100644 --- a/examples/cpp/xpress_use.cc +++ b/examples/cpp/xpress_use.cc @@ -91,7 +91,6 @@ void useXpressSolver(bool solveAsMip, bool useFactory) { #define ABSL_MIN_LOG_LEVEL INFO; int main(int argc, char** argv) { absl::SetFlag(&FLAGS_stderrthreshold, 0); - absl::SetFlag(&FLAGS_logtostderr, true); InitGoogle(argv[0], &argc, &argv, true); std::cout << "start\n"; LOG(WARNING) << "start"; diff --git a/ortools/base/logging.cc b/ortools/base/logging.cc index d04eb6e037..c88adac71c 100644 --- a/ortools/base/logging.cc +++ b/ortools/base/logging.cc @@ -20,8 +20,6 @@ #include "absl/log/globals.h" #include "absl/log/initialize.h" -ABSL_FLAG(bool, logtostderr, false, "no op compatibility flag"); - namespace operations_research { namespace { diff --git a/ortools/base/logging.h b/ortools/base/logging.h index 4fdc7f8ab8..242cbf669c 100644 --- a/ortools/base/logging.h +++ b/ortools/base/logging.h @@ -26,9 +26,6 @@ #include "absl/strings/string_view.h" #include "ortools/base/macros.h" -// Compatibility layer for glog/previous logging code. -ABSL_DECLARE_FLAG(bool, logtostderr); - // Forward the new flag. ABSL_DECLARE_FLAG(int, stderrthreshold); diff --git a/ortools/linear_solver/xpress_interface_test.cc b/ortools/linear_solver/xpress_interface_test.cc index be2370eac7..bc0e93dd29 100644 --- a/ortools/linear_solver/xpress_interface_test.cc +++ b/ortools/linear_solver/xpress_interface_test.cc @@ -1354,8 +1354,8 @@ TEST_F(XpressFixtureMIP, CallbackThrowsException) { } // namespace operations_research int main(int argc, char** argv) { - absl::SetFlag(&FLAGS_logtostderr, 1); testing::InitGoogleTest(&argc, argv); + absl::SetFlag(&FLAGS_stderrthreshold, 0); auto solver = operations_research::MPSolver::CreateSolver("XPRESS_LP"); if (solver == nullptr) { LOG(ERROR) << "Xpress solver is not available"; diff --git a/ortools/sat/colab/cp_sat.ipynb b/ortools/sat/colab/cp_sat.ipynb index fb51fbc0e5..1cd284c38d 100644 --- a/ortools/sat/colab/cp_sat.ipynb +++ b/ortools/sat/colab/cp_sat.ipynb @@ -22,7 +22,7 @@ "To build and run this runtime locally execute the following command at the root of a CitC:\n", "\n", "```\n", - "blaze run -c opt ortools/colab:or_notebook -- --alsologtostderr\n", + "blaze run -c opt ortools/colab:or_notebook\n", "```\n", "\n", "Then, click Connect button and click CONNECT under **Local runtime**.\n",