Browse Source

tsdb: add error details in log. (#6415)

Signed-off-by: johncming <johncming@yahoo.com>
pull/6430/head
johncming 5 years ago committed by Bartlomiej Plotka
parent
commit
0ae048ff78
  1. 2
      tsdb/db.go

2
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
}

Loading…
Cancel
Save