mirror of
https://github.com/go-gitea/gitea
synced 2024-12-25 15:14:37 +01:00
0d54395fb5
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 paused |
||
---|---|---|
.. | ||
color.go | ||
color_console.go | ||
color_console_other.go | ||
color_console_windows.go | ||
color_router.go | ||
event_format.go | ||
event_format_test.go | ||
event_writer.go | ||
event_writer_base.go | ||
event_writer_conn.go | ||
event_writer_conn_test.go | ||
event_writer_console.go | ||
event_writer_file.go | ||
flags.go | ||
flags_test.go | ||
groutinelabel.go | ||
groutinelabel_test.go | ||
init.go | ||
level.go | ||
level_test.go | ||
logger.go | ||
logger_global.go | ||
logger_impl.go | ||
logger_test.go | ||
manager.go | ||
manager_test.go | ||
misc.go | ||
stack.go |