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

statd,confd: misc. fixes with improved debug support #82

Merged
merged 2 commits into from
Aug 6, 2023
Merged

Commits on Aug 2, 2023

  1. statd: drop extra \n, not needed

    The idea is to 1) map debug/error macros to syslog(), which does not
    need \n, and 2) when stdout logging is used, let the macro add a \n.
    
    Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
    troglobit committed Aug 2, 2023
    Configuration menu
    Copy the full SHA
    9295e51 View commit details
    Browse the repository at this point in the history
  2. confd,statd: add support for enabling DEBUG log messages at runtime

     - add debug flag to trigger DEBUG() statements
     - DEBUG() macro needs 'path' argument
    
    For statd we can add support for an optional '-d' command line option to
    trigger, and SIGUSR1 to toggle, debug mode.  TBD for confd which still
    remains to be refactored into the same standalone daemon as statd.
    
    Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
    troglobit committed Aug 2, 2023
    Configuration menu
    Copy the full SHA
    3b58e8b View commit details
    Browse the repository at this point in the history