Open kvishnivetsky opened 2 years ago
The sensor have parameter -k for running foreground. In this case std::cout is used.
So, this is "by design" or it was a "fast way" to do some debugging output in C++ manner (streams)? ;-)
Hello, can you point to some piece of code you don't like ? Thanks.
Hello, can you point to some piece of code you don't like ? Thanks.
Ok. Idea is in using universal logging: "syslog everywhere" or "cout/cerr everywhere" but too. Or make debug output to cout/cerr depending from "-k" presence.
Problem is that, when I run voipmonitor as a service I see only part of out in system journal, and to see all I need to run in foreground mode. BTW I need to restart service to use "debug mode".
I forgot to mention that sensor makes many conversion/preparation processes for the GUI as a simple binary and there the cout is in the place. (So it's not only -k parameter) But if you find a place which should be syslogged instead of cout then please let us to know. Thanks.
Hi!
There is part of debug output as
syslog
calls and part asstd::cout
.syslog
- it's Ok Whystd::cout
?