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

FR: Disable node counts in the logs/terminal #4286

Closed
gerroon opened this issue Aug 15, 2021 · 3 comments · Fixed by #4307
Closed

FR: Disable node counts in the logs/terminal #4286

gerroon opened this issue Aug 15, 2021 · 3 comments · Fixed by #4307
Labels
Proposal 💡 Would be nice to have

Comments

@gerroon
Copy link

gerroon commented Aug 15, 2021

Hi

It would be nice if there is a way to disable the logs of the loaded nodes, the reason is that it pollutes the terminal and makes harder to see the errors from the other add-ons. For some reason Sverchok's node listing done as the last step during start up or reloading add-ons. It makes it easy to miss the errors of other add-ons.

I tried disabling logging, but that does not help.

Thanks

@gerroon gerroon changed the title FR: Disable note counts in the logs/terminal FR: Disable node counts in the logs/terminal Aug 15, 2021
@Durman Durman added the Proposal 💡 Would be nice to have label Aug 15, 2021
@Durman
Copy link
Collaborator

Durman commented Aug 15, 2021

My opinion is that showing the list in console is not best place to let users know about nodes with dependencies. There is proposal to show them in the menu as inactive items - #3410.
Another more simple solution could be to show the nodes somewhere in Extra nodes tab in Sverchok settings.

Also it's possible to show the list according to some log level but as to me log levels serve another function.

@zeffii
Copy link
Collaborator

zeffii commented Aug 26, 2021

ok. i'm also getting pretty tired of seeing some of that stuff at startup/refresh. So i'll limit the startup prints to this:

sv: import settings
sv: PyMCubes package is not available. PyMCubes-based implementation of Marching Cubes will not be available
sv: Circlify package is not available. Circlify node will not be available
sv: FreeCAD package is not available, Solids nodes will not be available
sv: Dependencies available: pip, scipy, geomdl, scikit-image, Cython, Numba.
sv: import all modules
sv: enable internal debug logging.
2021-08-26 15:29:47,887 [INFO] logging: log level, 20
 ______ _    _ _______  ______ _______ _     _  _____  _     _
/______  \  /  |______ |_____/ |       |_____| |     | |____/
______/   \/   |______ |    \_ |_____  |     | |_____| |    \_
initialized.

sv: version: 1.0.0, branch suppress_some_startup_printing, commit 1481e0f2

if we want to see the log of not-enabled nodes, and node count, we can do:

>>> import sverchok
>>> sverchok.menu.log_details()

terminal will then display the not enabled node list and the node count found at startup, upon request.

#4307

@zeffii
Copy link
Collaborator

zeffii commented Aug 26, 2021

It makes it easy to miss the errors of other add-ons.

beyond this, hopefully you can track down those errors with less effort now. It's a bad sign if add-ons have errors during scripts-refresh.

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

Successfully merging a pull request may close this issue.

3 participants