Archived
1
0
Fork 0

Bugfix typo for compilation

Used logrus.Logf instead of logrus.Printf.

Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
Julien Riou 2021-04-15 15:25:54 +02:00
parent 1f5cef17d2
commit 75ca25ffbb
No known key found for this signature in database
GPG key ID: FF42D23B580C89F7

View file

@ -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)
}
}
}