I'm using the Motive API to receive rigid body data.
When a rigid body is in view, a large number of log messages start to appear in the command console (stdout). They're all in the following format:
...npoint\thirdparty\ceres\v1.10.0\internal\ceres\wall_time.cc:74
DenseNormalCholeskySolver::Solve
Delta Cumulative
Setup : 0.00001 0.00001
Product : 0.00002 0.00003
Solve : 0.00001 0.00005
Total : 0.00000 0.00005
I'm guessing these are coming from one of the Motive API dll's. Is there any way to disable or redirect these messages?
Disabling Motive API log messages
Re: Disabling Motive API log messages
I actually figured out that the messages are going to stderr and was able to suppress that output with freopen("NUL", "w", stderr); (on Windows).
In the future, it still would be nice to have control over the logging level though!
In the future, it still would be nice to have control over the logging level though!
-
- NaturalPoint Employee
- Posts: 718
- Joined: Mon Jan 19, 2015 11:52 am
Re: Disabling Motive API log messages
Hello mtmike,
Thank you for sharing your workaround here.
There is currently a bug in the API that is causing more output than is necessary. This will be fixed in the next release, so you should see an improvement then.
Cheers,
Steven
--
Steven Andrews
OptiTrack | Customer Support Engineer
Thank you for sharing your workaround here.
There is currently a bug in the API that is causing more output than is necessary. This will be fixed in the next release, so you should see an improvement then.
Cheers,
Steven
--
Steven Andrews
OptiTrack | Customer Support Engineer