Skip to content

Commit

Permalink
use logger from file
Browse files Browse the repository at this point in the history
  • Loading branch information
martinvonk committed Sep 30, 2024
1 parent 2982877 commit ff9c5b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pastastore/store.py
Original file line number Diff line number Diff line change
Expand Up @@ -1294,8 +1294,8 @@ def _solve_model(
ml.solve(report=report, **m_kwargs)
except Exception as e:
if ignore_solve_errors:
warning = "solve error ignored for -> {}".format(ml.name)
ps.logger.warning(warning)
warning = "Solve error ignored for '%s': %s " %(ml.name, e)
logger.warning(warning)
else:
raise e

Expand Down

0 comments on commit ff9c5b9

Please sign in to comment.