mirror of
https://github.com/Icinga/icingadb.git
synced 2026-06-03 14:00:11 -04:00
cmd/ido2icingadb: correct log levels
This commit is contained in:
parent
5396afe32a
commit
517fdcb475
1 changed files with 2 additions and 2 deletions
|
|
@ -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"))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue