Skip to content

Commit

Permalink
remove the only generic logger usage
Browse files Browse the repository at this point in the history
github.com/go-pkgz/lgr should be used instead for consistency
with the rest of the code
  • Loading branch information
paskal authored and umputun committed Nov 3, 2022
1 parent f1b5469 commit 907ca2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/_example/memory_store/accessor/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ package accessor

import (
"fmt"
"log"
"sort"
"sync"
"time"

log "github.com/go-pkgz/lgr"
"github.com/umputun/remark42/backend/app/store"
"github.com/umputun/remark42/backend/app/store/engine"
)
Expand Down Expand Up @@ -267,7 +267,7 @@ func (m *MemData) ListFlags(req engine.FlagRequest) (res []interface{}, err erro
return res, nil

case engine.Blocked:
log.Printf("%+v", m.metaUsers)
log.Printf("[INFO] metaUsers: %+v", m.metaUsers)
for _, u := range m.metaUsers {
if u.SiteID == req.Locator.SiteID && u.Blocked && u.BlockedUntil.After(time.Now()) {
res = append(res, store.BlockedUser{ID: u.UserID, Until: u.BlockedUntil})
Expand Down

0 comments on commit 907ca2b

Please sign in to comment.