Add additional logging for label save failures (#1012)

This is intended to help with debugging #744.
This commit is contained in:
Zach Wasserman 2021-06-08 15:29:26 -07:00 committed by GitHub
parent ab8925a005
commit 0fd8590605
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -345,7 +345,7 @@ func (d *Datastore) RecordLabelQueryExecutions(host *kolide.Host, results map[ui
_, err := d.db.Exec(sql, vals...)
if err != nil {
return errors.Wrap(err, "insert label query executions")
return errors.Wrapf(err, "insert label query executions (%v)", vals)
}
}