From df8d542549464bfb9608121d9ddaae9e01b8d8dd Mon Sep 17 00:00:00 2001 From: Thomas Rudin Date: Thu, 28 Feb 2019 20:19:20 +0100 Subject: [PATCH] print out failing mapblock --- server/mapblockaccessor/legacyblocks.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/server/mapblockaccessor/legacyblocks.go b/server/mapblockaccessor/legacyblocks.go index 1413797..9642439 100644 --- a/server/mapblockaccessor/legacyblocks.go +++ b/server/mapblockaccessor/legacyblocks.go @@ -48,6 +48,14 @@ func (a *MapBlockAccessor) FindNextLegacyBlocks(s settings.Settings, layers []*l mapblock, err := mapblockparser.Parse(block.Data, block.Mtime, block.Pos) 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 }