Skip to content

Commit

Permalink
feat: add log
Browse files Browse the repository at this point in the history
  • Loading branch information
zenghur committed Mar 27, 2020
1 parent 69f2d7d commit 3ab6cc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions freesia.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package freesia

import (
"context"
"fmt"
"os"

"github.com/xiaojiaoyu100/lizard/mass"
Expand Down Expand Up @@ -289,8 +288,9 @@ func (f *Freesia) sub() {
return err
}
for _, key := range keys {
f.logger.Printf("delete key: %s", key)
if err := f.cache.Del(key); err != nil {
fmt.Printf("async delete cache key = %s, err = %#v", key, err)
f.logger.Errorf("async delete cache key = %s, err = %#v", key, err)
}
}
return nil
Expand Down

0 comments on commit 3ab6cc2

Please sign in to comment.