diff --git a/mapblockaccessor/mapblockaccessor.go b/mapblockaccessor/mapblockaccessor.go index 04ce829..ec063e5 100644 --- a/mapblockaccessor/mapblockaccessor.go +++ b/mapblockaccessor/mapblockaccessor.go @@ -3,6 +3,7 @@ package mapblockaccessor import ( "fmt" "github.com/patrickmn/go-cache" + "github.com/sirupsen/logrus" "mapserver/coords" "mapserver/db" "mapserver/mapblockparser" @@ -48,6 +49,14 @@ func (a *MapBlockAccessor) FindLatestMapBlocks(mintime int64, limit int) ([]*map mblist := make([]*mapblockparser.MapBlock, 0) for _, block := range blocks { + + fields := logrus.Fields{ + "x": block.Pos.X, + "y": block.Pos.Y, + "z": block.Pos.Z, + } + logrus.WithFields(fields).Debug("updated mapblock") + key := getKey(block.Pos) mapblock, err := mapblockparser.Parse(block.Data, block.Mtime) diff --git a/mapserver.json b/mapserver.json index 88458ef..09ec7fd 100644 --- a/mapserver.json +++ b/mapserver.json @@ -1,7 +1,7 @@ { "port": 8080, - "enableinitialrendering": true, - "enableincrementalupdate": false, + "enableinitialrendering": false, + "enableincrementalupdate": true, "webdev": true, "webapi": { "enablemapblock": true