Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bindings of setLoggerVerbosityLevel #41

Open
jmirabel opened this issue Dec 12, 2019 · 2 comments
Open

Bindings of setLoggerVerbosityLevel #41

jmirabel opened this issue Dec 12, 2019 · 2 comments

Comments

@jmirabel
Copy link
Contributor

The following code snippets

from dynamic_graph.tracer import Tracer
t = Tracer('t')
t.setLoggerVerbosityLevel(0)

gives

SystemError                               Traceback (most recent call last)
SystemError: ../Objects/longobject.c:244: bad argument to internal function
@jmirabel
Copy link
Contributor Author

However,

from dynamic_graph.tracer import Tracer
from dynamic_graph.entity import VerbosityLevel
t = Tracer('t')
t.setLoggerVerbosityLevel(VerbosityLevel.VERBOSITY_ALL)

works.
I will update the doc.

@jmirabel
Copy link
Contributor Author

After double thinking about it, the error message is very misleading so I re-open this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant