Bugfix typo for compilation
Used logrus.Logf instead of logrus.Printf. Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
parent
1f5cef17d2
commit
75ca25ffbb
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -133,7 +133,7 @@ func main() {
|
|||
if trx = db.Unscoped().Delete(&p); trx.Error != nil {
|
||||
log.Warnf("cannot remove stale product %s (%s): %s", p.Name, p.URL, trx.Error)
|
||||
} else {
|
||||
log.Logf("stale product %s (%s) removed from database", p.Name, p.URL)
|
||||
log.Printf("stale product %s (%s) removed from database", p.Name, p.URL)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue