commit | 8f24023ba0b3a193f6adf7f66c426613a2b7d0fb | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Tue Aug 27 16:41:06 2019 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Tue Aug 27 17:14:19 2019 +0200 |
tree | 2fda1febc158b871838cbe6587f94271384babbe | |
parent | 9f830d7408cbfe2100a575e3cf2de5233a2ce80f [diff] |
MINOR: sink: now report the number of dropped events on output The principle is that when emitting a message, if some dropped events were logged, we first attempt to report this counter before going further. This is done under an exclusive lock while all logs are produced under a shared lock. This ensures that the dropped line is accurately reported and doesn't accidently arrive after a later event.