Demote warning to debug message

This commit is contained in:
Massimiliano Culpo 2023-08-14 11:18:18 +02:00 committed by Todd Gamblin
parent 1db91e0ccd
commit def4d19980

View file

@ -837,7 +837,7 @@ def on_model(model):
solve_result = self.control.solve(**solve_kwargs) solve_result = self.control.solve(**solve_kwargs)
if solve_result.satisfiable and self._model_has_cycles(models): if solve_result.satisfiable and self._model_has_cycles(models):
warnings.warn(f"cycles detected, falling back to slower algorithm [specs={specs}]") tty.debug(f"cycles detected, falling back to slower algorithm [specs={specs}]")
self.control.load(os.path.join(parent_dir, "cycle_detection.lp")) self.control.load(os.path.join(parent_dir, "cycle_detection.lp"))
self.control.ground([("no_cycle", [])]) self.control.ground([("no_cycle", [])])
models.clear() models.clear()