Skip to content

Commit b88f2ce

Browse files
committed
fix(docker): version bump
i really need to stop committing directly to main
1 parent 9448e3c commit b88f2ce

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.20 AS builder
1+
FROM golang:1.22 AS builder
22

33
ENV GOPATH=/root/go
44

main.go

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
package main
22

33
import (
4+
"log"
45
"net/http"
56

67
statsd "github.com/DataDog/datadog-go/v5/statsd"
78
"github.com/husobee/vestigo"
89
"github.com/watt3r/d2-live/internal/handlers"
9-
"oss.terrastruct.com/d2/lib/log"
10+
ctxlog "oss.terrastruct.com/d2/lib/log"
1011
)
1112

1213
var Version string
@@ -18,7 +19,7 @@ func main() {
1819
if err != nil {
1920
log.Fatal(err)
2021
}
21-
log.Init()
22+
ctxlog.Init()
2223

2324
c := handlers.Controller{
2425
Metrics: metricsClient,
@@ -33,5 +34,5 @@ func main() {
3334

3435
router.Get("/svg/:encodedD2", c.GetD2SVGHandler, c.StatsdMiddleware)
3536

36-
http.ListenAndServe(":8090", router)
37+
log.Fatal(http.ListenAndServe(":8090", router))
3738
}

0 commit comments

Comments
 (0)