Skip to content

Commit

Permalink
Changed page log time from ns to ms.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kugelschieber committed Nov 26, 2024
1 parent 1f20faa commit 946819d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.9.2

* changed page log time from ns to ms

## 0.9.1

* fixed blocking analytics requests
Expand Down
4 changes: 4 additions & 0 deletions demo/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,9 @@
"out": "static/bundle.js",
"out_source_map": "static/bundle.js.map",
"watch": true
},
"analytics": {
"provider": "pirsch",
"client_secret": ""
}
}
2 changes: 1 addition & 1 deletion pkg/cms/cms.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 946819d

Please sign in to comment.