1
0
forked from MTSR/mapserver

print out failing mapblock

This commit is contained in:
Thomas Rudin 2019-02-28 20:19:20 +01:00
parent 873843ee54
commit df8d542549

View File

@ -48,6 +48,14 @@ func (a *MapBlockAccessor) FindNextLegacyBlocks(s settings.Settings, layers []*l
mapblock, err := mapblockparser.Parse(block.Data, block.Mtime, block.Pos) mapblock, err := mapblockparser.Parse(block.Data, block.Mtime, block.Pos)
if err != nil { if err != nil {
fields := logrus.Fields{
"x": block.Pos.X,
"y": block.Pos.Y,
"z": block.Pos.Z,
"err": err,
}
logrus.WithFields(fields).Error("mapblock-pars")
return nil, err return nil, err
} }