Skip to content

Commit 91b81dd

Browse files
Juneezeegopherbot
authored andcommitted
internal/worker/log: replace exp/slog with log/slog
We started using golang.org/x/exp/slog in commit b2b721d ("internal/worker/log: use slog"). Since we test one Go version back (Go 1.22), and log/slog was released in Go 1.21, we can safely replace golang.org/x/exp/slog with log/slog. Change-Id: I36fec562cb7d0a1e08bcd35a25b8a983343e5732 Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/646115 Auto-Submit: Damien Neil <[email protected]> Reviewed-by: Damien Neil <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Reviewed-by: qiu laidongfeng2 <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
1 parent d63a862 commit 91b81dd

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

internal/observe/observe.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ package observe
88

99
import (
1010
"context"
11-
"golang.org/x/exp/slog"
11+
"log/slog"
1212
"net/http"
1313
"strings"
1414

internal/worker/log/log.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ package log
88
import (
99
"context"
1010
"fmt"
11-
"golang.org/x/exp/slog"
1211
"io"
12+
"log/slog"
1313
"os"
1414
"time"
1515
)

internal/worker/log/log_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"bytes"
99
"context"
1010
"fmt"
11-
"golang.org/x/exp/slog"
11+
"log/slog"
1212
"testing"
1313
"time"
1414
)

0 commit comments

Comments
 (0)