use default logging format, which is JSON, so that Datadog can parse it

This commit is contained in:
Jake Gold
2023-05-03 17:06:34 -07:00
parent 906b906eb1
commit 0a70ef9ed3
-1
View File
@@ -87,7 +87,6 @@ func serve(cctx *cli.Context) error {
Skipper: func(c echo.Context) bool { Skipper: func(c echo.Context) bool {
return strings.HasPrefix(c.Request().URL.Path, "/static") return strings.HasPrefix(c.Request().URL.Path, "/static")
}, },
Format: "method=${method} path=${uri} status=${status} latency=${latency_human}\n",
})) }))
e.Renderer = NewRenderer("templates/", &bskyweb.TemplateFS, debug) e.Renderer = NewRenderer("templates/", &bskyweb.TemplateFS, debug)
e.HTTPErrorHandler = customHTTPErrorHandler e.HTTPErrorHandler = customHTTPErrorHandler