diff options
| author | Xe Iaso <me@xeiaso.net> | 2023-08-26 14:14:51 -0400 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2023-08-26 14:14:51 -0400 |
| commit | 81fe4e8a12b362f7de9a97210f950c388d047664 (patch) | |
| tree | d71d879f62d74e528a1338470df268669e2565be /cmd/xedn | |
| parent | 924a12ab6915b7dad147ed57c5a384c142f82c1e (diff) | |
| download | x-81fe4e8a12b362f7de9a97210f950c388d047664.tar.xz x-81fe4e8a12b362f7de9a97210f950c388d047664.zip | |
Switch from ln to slog
ln had a good run, but it's not going to last for the long term. I'm
going to standardize everything on log/slog and deprecate ln.
Closes #385
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'cmd/xedn')
| -rw-r--r-- | cmd/xedn/imgoptimize.go | 2 | ||||
| -rw-r--r-- | cmd/xedn/main.go | 2 | ||||
| -rw-r--r-- | cmd/xedn/stablediffusion.go | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/cmd/xedn/imgoptimize.go b/cmd/xedn/imgoptimize.go index 95779c6..38f6ae9 100644 --- a/cmd/xedn/imgoptimize.go +++ b/cmd/xedn/imgoptimize.go @@ -7,6 +7,7 @@ import ( "fmt" "image" "image/png" + "log/slog" "net/http" "os" "path/filepath" @@ -17,7 +18,6 @@ import ( "github.com/chai2010/webp" "github.com/disintegration/imaging" "go.etcd.io/bbolt" - "golang.org/x/exp/slog" "golang.org/x/sync/singleflight" "tailscale.com/metrics" "within.website/x/internal/avif" diff --git a/cmd/xedn/main.go b/cmd/xedn/main.go index d1f263c..c9a0c9e 100644 --- a/cmd/xedn/main.go +++ b/cmd/xedn/main.go @@ -13,6 +13,7 @@ import ( "image/png" "io" "log" + "log/slog" "net/http" "os" "path/filepath" @@ -23,7 +24,6 @@ import ( "github.com/rs/cors" "github.com/sebest/xff" "go.etcd.io/bbolt" - "golang.org/x/exp/slog" "golang.org/x/sync/singleflight" "tailscale.com/hostinfo" "tailscale.com/metrics" diff --git a/cmd/xedn/stablediffusion.go b/cmd/xedn/stablediffusion.go index 1035ce1..fae18e4 100644 --- a/cmd/xedn/stablediffusion.go +++ b/cmd/xedn/stablediffusion.go @@ -7,6 +7,7 @@ import ( "fmt" "image" "image/jpeg" + "log/slog" "math/rand" "net/http" "path/filepath" @@ -16,7 +17,6 @@ import ( "time" "go.etcd.io/bbolt" - "golang.org/x/exp/slog" "golang.org/x/sync/singleflight" "within.website/x/web/stablediffusion" ) |
