Skip to content

Turn off logging info #58

Answered by cdiener
erolkavvas asked this question in Q&A
Sep 13, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

It's disabled by default, are you importing another package that changes the logging level? Either way, your solution was almost there but you need to set the attributes on the logger and not the module, so on micom.logger.logger not on micom.logger.

Example:

In [1]: import micom as mm

In [2]: mm.logger.logger.setLevel("INFO")

In [3]: com = mm.Community(mm.data.test_taxonomy())
[13:45:14] INFO     building new micom model None.                                                                                                            community.py:135
           INFO     using the cplex solver.                                                                                                …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@erolkavvas
Comment options

Answer selected by erolkavvas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants