1
0
forked from MTSR/mapserver

update mapblock debug

This commit is contained in:
NatureFreshMilk 2019-01-18 15:56:53 +01:00
parent 0415b69731
commit 624f6b2914
2 changed files with 11 additions and 2 deletions

View File

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

View File

@ -1,7 +1,7 @@
{
"port": 8080,
"enableinitialrendering": true,
"enableincrementalupdate": false,
"enableinitialrendering": false,
"enableincrementalupdate": true,
"webdev": true,
"webapi": {
"enablemapblock": true