Menu

Disable INFO console output

Help
2012-02-22
2012-09-22
  • David Rowland

    David Rowland - 2012-02-22

    Hi there, is it possible to disable the console output of lines starting in
    "INFO"?

    I have found some settings in <err.h> which reduce the "ERROR" messages but
    can't seem to find the ones relating to INFO. I have set the following in my
    code: </err.h>

    err_set_logfp (NULL);
    err_set_logfile (NULL);
    err_set_debug_level (0);

    As I am doing constant speech recognition these messages make it very
    difficult to spot other debug messages I am outputting.

    Any pointers would be much appreciated.

    Dave.

     
  • Nickolay V. Shmyrev

    If you are using multhtreaded application you might want to call

    err_set_logfp (NULL);
    

    in every thread. Otherwise it should work.

     
  • David Rowland

    David Rowland - 2012-02-22

    Ah perfect! Yes, I was using multiple threads, that solved it.

    Thanks a lot nshmyrev.

     

Log in to post a comment.