Skip to content

Commit 07efd95

Browse files
ilai-deutellanctot
authored andcommitted
Fix incorrect logging call in JPSRO algorithm
`logging.debug` doesn't take a `flush=` argument. PiperOrigin-RevId: 883189849 Change-Id: If55fbde1fccb387639714e92001f23329a37267f
1 parent b81f818 commit 07efd95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

open_spiel/python/algorithms/jpsro.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,11 +227,11 @@ def wrapper(payoff, per_player_repeats, *args, eliminate_dominated=True,
227227
# Optimization.
228228
def _try_two_solvers(func, *args, **kwargs):
229229
try:
230-
logging.debug("Trying CVXOPT.", flush=True)
230+
logging.debug("Trying CVXOPT.")
231231
kwargs_ = {"solver_kwargs": DEFAULT_CVXOPT_SOLVER_KWARGS, **kwargs}
232232
res = func(*args, **kwargs_)
233233
except: # pylint: disable=bare-except
234-
logging.debug("CVXOPT failed. Trying OSQP.", flush=True)
234+
logging.debug("CVXOPT failed. Trying OSQP.")
235235
kwargs_ = {"solver_kwargs": DEFAULT_OSQP_SOLVER_KWARGS, **kwargs}
236236
res = func(*args, **kwargs_)
237237
return res

0 commit comments

Comments
 (0)