0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-25 11:24:50 +01:00
gitea/modules
zeripath 8eefe2af45
Empty log queue on flush and close (#19994)
* 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 #19982

Signed-off-by: Andrew Thornton <art27@cantab.net>

* and do similar for ChannelledLog

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2022-06-18 10:33:13 +08:00
..
activitypub
analyze Simplify IsVendor (#19626) 2022-05-06 10:12:30 +01:00
appstate
auth
avatar
base Prettify number of issues (#17760) 2022-06-12 20:08:23 +08:00
cache
charset
container
context Remove tab/TabName usage where it's not needed (#19973) 2022-06-15 23:05:32 +08:00
convert Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
csv Allow render HTML with css/js external links (#19017) 2022-06-16 11:33:23 +08:00
doctor Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
emoji
eventsource Stop spurious APIFormat stopwatches logs (#20008) 2022-06-17 22:47:15 +01:00
generate
git Add fetch.writeCommitGraph to gitconfig (#20006) 2022-06-17 21:18:35 +01:00
gitgraph Move some code into models/git (#19879) 2022-06-12 23:51:54 +08:00
graceful Fix signal loop in graceful manager (#19943) 2022-06-12 21:50:18 +08:00
hcaptcha
highlight
hostmatcher
httpcache
httplib
indexer Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
json
lfs Move some code into models/git (#19879) 2022-06-12 23:51:54 +08:00
log Empty log queue on flush and close (#19994) 2022-06-18 10:33:13 +08:00
markup Remove legacy git code (ver < 2.0), fine tune markup tests (#19930) 2022-06-16 23:47:44 +08:00
metrics
migration
nosql
notification Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
options
packages
paginator
password
pprof
private
process
proxy
public
queue
recaptcha
references
regexplru
repository Remove legacy git code (ver < 2.0), fine tune markup tests (#19930) 2022-06-16 23:47:44 +08:00
secret
session
setting Allow render HTML with css/js external links (#19017) 2022-06-16 11:33:23 +08:00
ssh
storage
structs
svg
sync
templates Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
test
timeutil
translation
typesniffer
updatechecker
upload
uri
user
util Prettify number of issues (#17760) 2022-06-12 20:08:23 +08:00
validation
web