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

Signed-off-by: johncming <johncming@yahoo.com>
This commit is contained in:
johncming 2019-12-09 18:37:01 +08:00 committed by Bartlomiej Plotka
parent b0a5c51b95
commit 0ae048ff78

View File

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