]> Cypherpunks repositories - gostls13.git/commit
log/slog: use consistent call depth for all output
authorÖrjan Fors <o@42mm.org>
Wed, 5 Mar 2025 22:33:50 +0000 (22:33 +0000)
committerGopher Robot <gobot@golang.org>
Tue, 11 Mar 2025 20:50:02 +0000 (13:50 -0700)
commit8591f8e19e3a2e75e86b486ac8a9ec7ff4f3bcbe
tree899261b8a6b697ee7b4a643464e2e0547afa2668
parent39b783780a471961ae381a9fc37a5a1e468f5c21
log/slog: use consistent call depth for all output

This makes all log functions keep a consistent call structure to be nice
with the handleWriter in the slog package which expects a strict level
of 4.

Fixes #67362.

Change-Id: Ib967c696074b1ca931f6656dd27ff1ec484233b8
GitHub-Last-Rev: 49bc424986875da2dd244b57f8b0851d3bfd1a29
GitHub-Pull-Request: golang/go#67645
Reviewed-on: https://go-review.googlesource.com/c/go/+/588335
Auto-Submit: Sean Liao <sean@liao.dev>
Reviewed-by: Junyang Shao <shaojunyang@google.com>
Reviewed-by: Sean Liao <sean@liao.dev>
Reviewed-by: David Chase <drchase@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/log/log.go
src/log/log_test.go
src/log/slog/logger_test.go