-
Notifications
You must be signed in to change notification settings - Fork 865
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[apps] Fixed logfa handling in srt-live-transmit #1647
[apps] Fixed logfa handling in srt-live-transmit #1647
Conversation
@@ -401,8 +401,12 @@ int main(int argc, char** argv) | |||
// Set SRT log levels and functional areas | |||
// | |||
srt_setloglevel(cfg.loglevel); | |||
for (set<srt_logging::LogFA>::iterator i = cfg.logfas.begin(); i != cfg.logfas.end(); ++i) | |||
srt_addlogfa(*i); | |||
if (!cfg.logfas.empty()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That makes the usage different to what's in srt-test-live. At least add some explanation at the option help text.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
srt-live-transmit
is the main external sample application, and its behavior around FAs is already different from srt-test-live
.
This PR does not change the behavior much. It just assumes if you provide -logfa:que-recv
, then you want only this FA to be enabled.
In srt-test-live
the same will be achieved by disabling all
FAs first, then enabling the desired FAs, which I find a bit trickier:
-logfa ~all +que-recv
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's ok that this app works differently. Just explain this in the help text. It's important because it's a user application.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider adding the information to -h logging
that if -logfa are specified, then all default enabled logfa will be now disabled.
TODO to consider
|
If a functional area or several areas are provided, the list has to be reset before adding those FAs.