mirror of
https://github.com/prometheus/prometheus
synced 2024-12-25 07:52:28 +00:00
tsdb: add error details in log. (#6415)
Signed-off-by: johncming <johncming@yahoo.com>
This commit is contained in:
parent
b0a5c51b95
commit
0ae048ff78
@ -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…
Reference in New Issue
Block a user