diff --git a/ortools/sat/cp_model_presolve.cc b/ortools/sat/cp_model_presolve.cc index 668e795c4a..4eea4ae53e 100644 --- a/ortools/sat/cp_model_presolve.cc +++ b/ortools/sat/cp_model_presolve.cc @@ -3974,7 +3974,7 @@ void RemoveUnusedEquivalentVariables(PresolveContext* context) { &domain_modified)) { return; } - if (domain_modified) { + if (domain_modified && VLOG_IS_ON(1)) { LOG(WARNING) << "Domain of " << r.representative << " was not fully propagated using the affine relation " << "(var = " << var