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

how to remove vtk log #1128

Open
rookie96 opened this issue May 30, 2024 · 2 comments
Open

how to remove vtk log #1128

rookie96 opened this issue May 30, 2024 · 2 comments
Labels
long-term longer term tricky fix or enhancement

Comments

@rookie96
Copy link

i use vedo.Mesh.intersect_with_plane many times.

once i call vedo.Mesh.intersect_with_plane, one vtk log("2024-05-30 16:18:57.450 ( 3.004s) [D74557468B270C7F]vtkPolyDataPlaneCutter.:589 INFO| Executing vtkPolyData plane cutter") appear my console and log files.

how can i remove vtk log?

i tried changing logging.setLevel, logging.disabled, stdout/stderr suppress(https://stackoverflow.com/questions/11130156/suppress-stdout-stderr-print-from-python-functions)

but i still sees many vtk logs

@marcomusy
Copy link
Owner

Unfortunately this is (if I remember corrctly) an upstream bug from vtk so we cannot do much to fix it..

@marcomusy marcomusy added the long-term longer term tricky fix or enhancement label Jun 13, 2024
@andrefpf
Copy link

To disable the weird vtk logs and error messages in my applications I added the following lines just before launching the main code:

vtk.vtkObject.GlobalWarningDisplayOff()
vtk.vtkLogger.SetStderrVerbosity(vtk.vtkLogger.VERBOSITY_OFF)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
long-term longer term tricky fix or enhancement
Projects
None yet
Development

No branches or pull requests

3 participants