intel / libyami

Yet Another Media Infrastructure. it is core part of media codec with hardware acceleration, it is yummy to your video experience on Linux like platform.
Apache License 2.0
146 stars 106 forks source link

How to turn off debug messages #887

Closed EwanRoycroft closed 4 years ago

EwanRoycroft commented 4 years ago

I would like to turn off debug messaging from yami but cannot find how to do this.

I can see some of my V4L2 ioctls are triggering ERROR -> YAMI_DEBUG_MESSAGE -> yamiMessage and wonder if there is a configuration/build argument to turn this off.

Edit: I notice that yamiMessage only triggers if yamiLogFlag >= YAMI_LOG_ERROR, I assume that error messages are not turned off by --enable-debug=no?

EwanRoycroft commented 4 years ago

Found the solution.

70: Log levels are set with the LIBYAMI_LOG_LEVEL environment variable at runtime, not during configuration/build.

xuguangxin commented 4 years ago

yes, you are right.