diff --git a/CHANGELOG.md b/CHANGELOG.md index b132887..2f5d23a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 0.9.2 + +* changed page log time from ns to ms + ## 0.9.1 * fixed blocking analytics requests diff --git a/demo/config.json b/demo/config.json index fdaa856..85491cd 100644 --- a/demo/config.json +++ b/demo/config.json @@ -19,5 +19,9 @@ "out": "static/bundle.js", "out_source_map": "static/bundle.js.map", "watch": true + }, + "analytics": { + "provider": "pirsch", + "client_secret": "" } } diff --git a/pkg/cms/cms.go b/pkg/cms/cms.go index fc874c0..4156bf5 100644 --- a/pkg/cms/cms.go +++ b/pkg/cms/cms.go @@ -118,7 +118,7 @@ func (cms *CMS) Serve(w http.ResponseWriter, r *http.Request) { cms.m.RUnlock() cms.RenderPage(w, r, path, &page) - slog.Debug("Served page", "time_ns", time.Now().Sub(start).Nanoseconds()) + slog.Debug("Served page", "time_ms", time.Now().Sub(start).Milliseconds()) } // RenderPage renders given page and returns it to the client.