Anyone know how to disable some debug logging in deepstream 6.1.
I keep seeing these messages and they are filling up my log files. Everything I have tried has not worked so far.
gstnvtracker: obj 1320 Class mismatch
thanks
Anyone know how to disable some debug logging in deepstream 6.1.
I keep seeing these messages and they are filling up my log files. Everything I have tried has not worked so far.
gstnvtracker: obj 1320 Class mismatch
thanks
Hey @dreynolds1 I’ve moved this to the DeepStream forum so the right team can pick it up! Best,
Sophie
gst-nvtracker
is not open source in deepstream-6.1, You can consider upgrade to newer version or the following method, but this method will cause all logs to stop being output
int main(void) {
freopen("/dev/null", "w", stdout);
}
Thanks Junshengy,
Unfortunately, this is a deployed product, so upgrading is not an option. Also we tried sending the logs to dev/null and that did not work.
Dan
This code snippet works for me. If it doesn’t work on your platform, I don’t have any better suggestions.
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
int supress_stdout() {
fflush(stdout);
int ret = dup(1);
int nullfd = open("/dev/null", O_WRONLY);
// check nullfd for error omitted
dup2(nullfd, 1);
close(nullfd);
return ret;
}
void resume_stdout(int fd) {
fflush(stdout);
dup2(fd, 1);
close(fd);
}
int main() {
int fd = supress_stdout();
printf("This will not be printed.\n");
resume_stdout(fd);
printf("This will be printed.\n");
return 0;
}
Thanks Junshengy,
Our code is written in python, We have been trying to suppress the stdout to /dev/null, but have not had any luck yet. Something in our code is preventing that right now. We were hoping that there was an undocumented configuration parameter that would turn this off. We will continue with our attempts to suppress stdout.
Dan
Thanks Junshengy,
We got it working now.
Dan
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.