[chrony-dev] [Git][chrony/chrony][master] sources: rework logging of selection loss

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-dev Archives ]


Title: GitLab

Miroslav Lichvar pushed to branch master at chrony / chrony

Commits:

  • 3ee7b3e7
    by Miroslav Lichvar at 2023-11-28T12:21:23+01:00
    sources: rework logging of selection loss
    
    The commit 5dd288dc0cbd ("sources: reselect earlier when removing
    selected source") didn't cover all paths that can lead to a missing log
    message when all sources are removed.
    
    Add a flag to track the loss of selection and postpone the log message
    in transient states where no message is logged to avoid spamming in
    normal operation. Call SRC_SelectSource() after removing the source
    to get a log message if there are no (selectable) sources left.
    
    Reported-by: Thomas Lange <thomas@xxxxxxxxxxxx>
    

1 changed file:



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/