remove references to logtostderr
This commit is contained in:
committed by
Corentin Le Molgat
parent
040bb0ca5f
commit
ead738883c
@@ -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";
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user