Commit bb4d1bf
committed
Use UTC timezone for
Previously, slog would try to use the local timezone and fallback to UTC
in multi-threaded programs. The check for `is_single_threaded` takes an
non-negligible amount of time when there's lots of logging. This uses
UTC unconditionally instead, which both makes the format consistent across
programs and also speeds up logging slightly.ts consistently1 parent 2b57966 commit bb4d1bf
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
335 | | - | |
336 | | - | |
| 335 | + | |
337 | 336 | | |
338 | 337 | | |
339 | 338 | | |
| |||
0 commit comments