Fix race conditions from PVLogger
Different threads (ds, rs) tried to access the verbosity key-value map from vtkPVLogger
causing a race condition.
These commits introduce per-module, thread-local log verbosity variables like we did with ServicesAsio
module.
In order to show logs from a module, the verbosity can be
- pre-loaded from the user environment (applies to all threads)
export VTKREMOTINGSERVERMANAGERCORE_LOG_VERBOSITY=value (nix)
$env:VTKREMOTINGSERVERMANAGERCORE_LOG_VERBOSITY=value (windows ps)
- set programmatically (applies to current thread)
vtkRemotingServerManagerCoreLogVerbosity::SetVerbosity(vtkLogger::INFO)
- set from a debugger (applies to current thread)
(gdb) call vtkRemotingServerManagerCoreLogVerbosity::SetVerbosity(vtkLogger::INFO)
Some modules declare additional keys to aid debugging and development.
-
ServerManagerCore
provides aRemotingServerManagerCoreDataMovementVerbosity
used to track the movement of geometry and images. -
ServicesCore
provides aServicesCoreProviderVerbosity
used by concrete implementations ofvtkProvider
.
Edited by Jaswant Panchumarti (Kitware)