We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
STEPS TO REPRODUCE:
Using https://github.com/buguroo/pyknow/blob/develop/docs/examples/maximum.ipynb
watch(watchers.RULES, watchers.FACTS, watchers.ACTIVATIONS) m.run()
--------------------------------------------------------------------------- KeyError Traceback (most recent call last) <ipython-input-4-b1cd45e85340> in <module> ----> 1 watch(watchers.RULES, watchers.FACTS, watchers.ACTIVATIONS) 2 m.run() ~/Documents/github/pyknow/pyknow/pyknow/watchers.py in watch(level, *what) 39 40 for watcher_name in what: ---> 41 watcher = globals()[watcher_name] 42 watcher.setLevel(level) 43 KeyError: <Logger pyknow.watchers.RULES (WARNING)>
The text was updated successfully, but these errors were encountered:
The comment in that notebook is wrong. Sorry about that.
watch receives strings with the names of the loggers to watch. Please, try:
watch
watch('RULES', 'FACTS', 'ACTIVATIONS')
Sorry, something went wrong.
Thanks @nilp0inter
That worked 👍
Feel free to close this issue.
Fix notebook comment on how to use watch
28737f6
Fixes buguroo#45.
Successfully merging a pull request may close this issue.
STEPS TO REPRODUCE:
Using https://github.com/buguroo/pyknow/blob/develop/docs/examples/maximum.ipynb
The text was updated successfully, but these errors were encountered: