From 0ae048ff7871c3a3d4ac73579963bfd2604a7ef6 Mon Sep 17 00:00:00 2001 From: johncming Date: Mon, 9 Dec 2019 18:37:01 +0800 Subject: [PATCH] tsdb: add error details in log. (#6415) Signed-off-by: johncming --- tsdb/db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsdb/db.go b/tsdb/db.go index 715a97b28..1785c1b7c 100644 --- a/tsdb/db.go +++ b/tsdb/db.go @@ -865,7 +865,7 @@ func openBlocks(l log.Logger, dir string, loaded []*Block, chunkPool chunkenc.Po for _, bDir := range bDirs { meta, _, err := readMetaFile(bDir) if err != nil { - level.Error(l).Log("msg", "not a block dir", "dir", bDir) + level.Error(l).Log("msg", "failed to read meta.json for a block", "dir", bDir, "err", err) continue }