cmd/ido2icingadb: correct log levels

This commit is contained in:
Alexander A. Klimov 2021-09-30 15:28:31 +02:00
parent 5396afe32a
commit 517fdcb475

View file

@ -292,14 +292,14 @@ func cacheGet(cache interface {
}, dest interface{}, query string, args ...interface{}) {
if err := cache.Get(dest, query, args...); err != nil {
log.With("backend", "cache", "query", query, "args", args).
Errorf("%+v", errors.Wrap(err, "can't perform query"))
Fatalf("%+v", errors.Wrap(err, "can't perform query"))
}
}
func cacheSelect(cacheTx *sqlx.Tx, dest interface{}, query string, args ...interface{}) {
if err := cacheTx.Select(dest, query, args...); err != nil {
log.With("backend", "cache", "query", query, "args", args).
Errorf("%+v", errors.Wrap(err, "can't perform query"))
Fatalf("%+v", errors.Wrap(err, "can't perform query"))
}
}