1
0
mirror of https://github.com/redis/go-redis.git synced 2026-10-24 07:59:20 +03:00
Files
sadd amr3e 85a7acaf46 fix(log): guard global Logger and LogLevel with atomics (#3988)
* fix(log): guard global Logger and LogLevel with atomics

* fix(log): pass calldepth to NewDefaultLogger for correct callsite

The atomic forwarding frame shifted DefaultLogger attribution to
log.go; use calldepth 3 for the plain logger and 4 for filterLogger,
which also fixes the pre-existing logging.go attribution in the
filter loggers.

* refactor(log): name the calldepth constants
2026-09-03 09:49:28 +03:00
..