From 0ccedbdfd27bb30ef2677b62b8919f090c37ddf9 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Mon, 10 Jun 2019 14:43:39 +0300 Subject: [PATCH] lib/storage: mention the accountID and projectID in error message when filtering out other (accountID, projectID) entries --- lib/storage/index_db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/storage/index_db.go b/lib/storage/index_db.go index 77d8311d5..62ea877c0 100644 --- a/lib/storage/index_db.go +++ b/lib/storage/index_db.go @@ -1714,7 +1714,7 @@ func (is *indexSearch) getMetricIDsForRecentHours(tr TimeRange, maxMetrics int, } } if err := ts.Error(); err != nil { - return nil, false, fmt.Errorf("cannot filter out metricIDs by (accountID, projectID): %s", err) + return nil, false, fmt.Errorf("cannot filter out metricIDs by (accountID=%d, projectID=%d): %s", accountID, projectID, err) } return metricIDs, true, nil }