Skip to content
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

Log to stdout when in no-daemon mode #430

Merged
merged 1 commit into from
Dec 12, 2018
Merged

Conversation

AzureMarker
Copy link
Contributor

By submitting this pull request, I confirm the following:

  • I have read and understood the contributors guide.
  • I have checked that another pull request for this purpose does not exist.
  • I have considered, and confirmed that this submission will be valuable to others.
  • I accept that this submission may not be used, and the pull request closed at the will of the maintainer.
  • I give this submission freely, and claim no ownership to its content.

How familiar are you with the codebase?: 10


no-daemon mode operates just like debug mode, but without the debug output, and dnsmasq is not in debug mode.

Note that there is an issue in no-daemon mode where Ctrl-C and other such signals do not stop FTL like in debug mode. However, I could only fix this by putting dnsmasq in debug mode...

This template was created based on the work of udemy-dl.

no-daemon mode operates just like debug mode, but without the debug
output, and dnsmasq is not in debug mode.

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
@AzureMarker AzureMarker added this to the v4.2 milestone Dec 12, 2018
@AzureMarker AzureMarker requested a review from a team December 12, 2018 01:42
@DL6ER
Copy link
Member

DL6ER commented Dec 12, 2018

I don't understand the logic of this PR. It doesn't seem to change the behavior of -f aka no-daemon, does it?

@AzureMarker
Copy link
Contributor Author

I may have messed up my explanation. I was testing with dnsmasq in debug mode, and then before committing decided to change it to not put dnsmasq in debug mode. Currently, the changes mostly just make better use of the daemonmode variable, and logs are output to stdout when not in daemon mode.

Copy link
Member

@DL6ER DL6ER left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved after new explanation of what the PR is doing

@DL6ER DL6ER merged commit 3634704 into development Dec 12, 2018
@DL6ER DL6ER deleted the fix/no-daemon-mode branch December 12, 2018 18:41
@DL6ER DL6ER changed the title Fix no-daemon mode forking dnsmasq and not logging Log to stdout when in no-daemon mode Dec 12, 2018
DL6ER added a commit that referenced this pull request Dec 14, 2018
Fix no-daemon mode forking dnsmasq and not logging
DL6ER added a commit that referenced this pull request Dec 14, 2018
Fix no-daemon mode forking dnsmasq and not logging

Signed-off-by: DL6ER <dl6er@dl6er.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants