mirror of https://github.com/go-gitea/gitea
Improve logger Pause handling (#24946)
The old EventWriter's Run does: ```go for { handlePause() select { case event <- Queue: write the log event ... } } ``` So, if an event writer is started before the logger is paused, there is a chance that the logger isn't paused for the first message. The new logic is: ```go for { select { case event <- Queue: handlePause() write the log event ... } } ``` Then the event writer can be correctly pausedpull/24958/head^2
parent
7314726bab
commit
0d54395fb5
Loading…
Reference in new issue