Browse Source

Print queue name as well on failing to sadd items.

custom-queue
arkiver 8 months ago
parent
commit
c500209e45
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      projectbackfeedmanager.go

+ 1
- 1
projectbackfeedmanager.go View File

@@ -198,7 +198,7 @@ func (that *ProjectBackfeedManager) Do() {
try := 0
for {
if err := that.ProjectRedis.SAdd(context.Background(), fmt.Sprintf("%s:%s", that.Name, queue), sAddItems...).Err(); err != nil {
log.Printf("failed to sadd items for %s: %s", that.Name, err)
log.Printf("failed to sadd items for %s:%s: %s", that.Name, queue, err)
time.Sleep(time.Duration(try) * time.Second)
try++
} else {


Loading…
Cancel
Save