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
|
@ -7,10 +7,8 @@ import (
|
|||
"database/sql"
|
||||
"fmt"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"miniflux.app/v2/internal/model"
|
||||
"miniflux.app/v2/internal/timer"
|
||||
)
|
||||
|
||||
// EntryPaginationBuilder is a builder for entry prev/next queries.
|
||||
|
@ -101,8 +99,6 @@ func (e *EntryPaginationBuilder) Entries() (*model.Entry, *model.Entry, error) {
|
|||
}
|
||||
|
||||
func (e *EntryPaginationBuilder) getPrevNextID(tx *sql.Tx) (prevID int64, nextID int64, err error) {
|
||||
defer timer.ExecutionTime(time.Now(), fmt.Sprintf("[EntryPaginationBuilder] %v, %v", e.conditions, e.args))
|
||||
|
||||
cte := `
|
||||
WITH entry_pagination AS (
|
||||
SELECT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue