Commit 2b4d403
Avoid interleaving logs from different processes
Previously there would be multiple write calls. One for the prefix and
one or more for the log arguments. Between each write call there can be
another process logging part of a log message. By instead buffering the
entire log and writing it as a single write we avoid this interleaving.1 parent e226d20 commit 2b4d403
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
0 commit comments