Skip to content

Commit

Permalink
internal/worker/log: replace exp/slog with log/slog
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Juneezee authored and gopherbot committed Feb 10, 2025
1 parent d63a862 commit 91b81dd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/observe/observe.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package observe

import (
"context"
"golang.org/x/exp/slog"
"log/slog"
"net/http"
"strings"

Expand Down
2 changes: 1 addition & 1 deletion internal/worker/log/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ package log
import (
"context"
"fmt"
"golang.org/x/exp/slog"
"io"
"log/slog"
"os"
"time"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/worker/log/log_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"bytes"
"context"
"fmt"
"golang.org/x/exp/slog"
"log/slog"
"testing"
"time"
)
Expand Down

0 comments on commit 91b81dd

Please sign in to comment.