Page 1 of 1

Disabling Motive API log messages

Posted: Tue Mar 01, 2016 6:54 pm
by mtmike
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?

Re: Disabling Motive API log messages

Posted: Wed Mar 02, 2016 2:56 pm
by mtmike
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!

Re: Disabling Motive API log messages

Posted: Wed Mar 02, 2016 3:16 pm
by steven.andrews
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