-
Notifications
You must be signed in to change notification settings - Fork 55
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
Feature/allow disabling daemon logs #281
Conversation
@@ -100,6 +101,10 @@ main (gint argc, gchar * argv[]) | |||
{"gst-log-filename", 'd', 0, G_OPTION_ARG_FILENAME, &gstlogfile, | |||
"Create gst.log file to path", NULL} | |||
, | |||
{"no-log", 'L', 0, G_OPTION_ARG_NONE, &nolog, |
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.
-L
for the option of disabling the logging is counter-intuitive. Should we add the boolean as an argument and make it enabled by default?
gstd/gstd.c
Outdated
@@ -128,7 +133,7 @@ main (gint argc, gchar * argv[]) | |||
} | |||
|
|||
if (daemon || kill) { | |||
if (!gstd_log_init (gstdlogfile, gstlogfile)) { | |||
if (!gstd_log_init (gstdlogfile, gstlogfile, !nolog && !kill)) { |
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.
This seems hard to read to me without comment. Should we separate the logic and create a boolean with the name enabled
for readability and add that the logging is only enabled under certain conditions as a small comment?
3252b9e
to
f232198
Compare
In response to #274