wxiaoguang
0d54395fb5
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 paused
2023-05-27 22:35:44 +02:00
..
2023-05-26 01:04:48 +00:00
2023-04-12 18:16:45 +08:00
2023-04-12 18:16:45 +08:00
2023-05-13 20:59:11 +02:00
2023-04-07 21:25:49 +08:00
2023-04-13 18:41:04 -04:00
2023-04-22 14:53:00 -04:00
2023-05-23 09:29:15 +08:00
2023-04-17 11:37:23 +08:00
2023-05-21 22:35:11 +00:00
2023-05-26 01:04:48 +00:00
2023-05-26 07:31:55 +00:00
2023-03-14 16:09:01 -04:00
2023-05-13 16:04:57 +02:00
2023-05-13 16:04:57 +02:00
2023-05-26 07:31:55 +00:00
2023-04-10 16:44:02 +08:00
2023-05-21 22:35:11 +00:00
2023-05-27 22:35:44 +02:00
2023-05-21 21:19:37 +00:00
2023-02-18 21:17:39 +02:00
2023-05-26 07:31:55 +00:00
2023-04-13 18:41:04 -04:00
2023-05-26 07:31:55 +00:00
2023-04-12 18:16:45 +08:00
2023-05-22 10:57:49 +08:00
2023-04-22 17:56:27 -04:00
2023-05-26 01:04:48 +00:00
2023-05-27 10:55:24 +00:00
2023-05-13 16:04:57 +02:00
2023-05-26 07:31:55 +00:00
2023-05-26 01:04:48 +00:00
2023-05-07 19:29:43 +08:00
2023-04-13 18:41:04 -04:00
2023-05-25 15:17:19 +02:00
2023-05-21 22:35:11 +00:00
2023-05-19 21:37:57 +08:00
2023-05-25 15:17:19 +02:00
2023-04-12 18:16:45 +08:00
2023-05-25 03:47:30 +00:00
2023-05-21 22:35:11 +00:00
2023-05-21 22:35:11 +00:00
2023-05-03 19:53:43 -04:00
2023-05-21 09:50:53 +08:00
2023-03-07 22:40:41 -05:00
2023-05-21 22:35:11 +00:00
2023-05-23 09:29:15 +08:00
2023-05-24 22:06:27 -04:00