File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
- FROM golang:1.20 AS builder
1
+ FROM golang:1.22 AS builder
2
2
3
3
ENV GOPATH=/root/go
4
4
Original file line number Diff line number Diff line change 1
1
package main
2
2
3
3
import (
4
+ "log"
4
5
"net/http"
5
6
6
7
statsd "github.com/DataDog/datadog-go/v5/statsd"
7
8
"github.com/husobee/vestigo"
8
9
"github.com/watt3r/d2-live/internal/handlers"
9
- "oss.terrastruct.com/d2/lib/log"
10
+ ctxlog "oss.terrastruct.com/d2/lib/log"
10
11
)
11
12
12
13
var Version string
@@ -18,7 +19,7 @@ func main() {
18
19
if err != nil {
19
20
log .Fatal (err )
20
21
}
21
- log .Init ()
22
+ ctxlog .Init ()
22
23
23
24
c := handlers.Controller {
24
25
Metrics : metricsClient ,
@@ -33,5 +34,5 @@ func main() {
33
34
34
35
router .Get ("/svg/:encodedD2" , c .GetD2SVGHandler , c .StatsdMiddleware )
35
36
36
- http .ListenAndServe (":8090" , router )
37
+ log . Fatal ( http .ListenAndServe (":8090" , router ) )
37
38
}
You can’t perform that action at this time.
0 commit comments