mirror of
https://github.com/miniflux/v2.git
synced 2025-08-11 17:51:01 +00:00
Implement structured logging using log/slog package
This commit is contained in:
parent
54cb8fa028
commit
c0e954f19d
77 changed files with 1868 additions and 892 deletions
|
@ -6,7 +6,6 @@ package ui // import "miniflux.app/v2/internal/ui"
|
|||
import (
|
||||
"net/http"
|
||||
|
||||
"miniflux.app/v2/internal/logger"
|
||||
"miniflux.app/v2/internal/storage"
|
||||
"miniflux.app/v2/internal/template"
|
||||
"miniflux.app/v2/internal/worker"
|
||||
|
@ -20,7 +19,7 @@ func Serve(router *mux.Router, store *storage.Storage, pool *worker.Pool) {
|
|||
|
||||
templateEngine := template.NewEngine(router)
|
||||
if err := templateEngine.ParseTemplates(); err != nil {
|
||||
logger.Fatal(`Unable to parse templates: %v`, err)
|
||||
panic(err)
|
||||
}
|
||||
|
||||
handler := &handler{router, store, templateEngine, pool}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue