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

Empty log queue on flush and close #19994

Merged
merged 5 commits into from
Jun 18, 2022

Commits on Jun 17, 2022

  1. Empty log queue on flush and close

    It is possible for log events to remain in the buffer off the multichannelledlog
    and thus not be logged despite close or flush.
    
    This PR simply adds a function to empty the queue before closing or flushing.
    (Except when the logger is paused.)
    
    Reference go-gitea#19982
    
    Signed-off-by: Andrew Thornton <art27@cantab.net>
    zeripath committed Jun 17, 2022
    Configuration menu
    Copy the full SHA
    4e445d6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0174ea9 View commit details
    Browse the repository at this point in the history
  3. and do similar for ChannelledLog

    Signed-off-by: Andrew Thornton <art27@cantab.net>
    zeripath committed Jun 17, 2022
    Configuration menu
    Copy the full SHA
    2670629 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3dfe117 View commit details
    Browse the repository at this point in the history

Commits on Jun 18, 2022

  1. Configuration menu
    Copy the full SHA
    92e7b8b View commit details
    Browse the repository at this point in the history