update mapblock debug
This commit is contained in:
parent
0415b69731
commit
624f6b2914
@ -3,6 +3,7 @@ package mapblockaccessor
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/patrickmn/go-cache"
|
"github.com/patrickmn/go-cache"
|
||||||
|
"github.com/sirupsen/logrus"
|
||||||
"mapserver/coords"
|
"mapserver/coords"
|
||||||
"mapserver/db"
|
"mapserver/db"
|
||||||
"mapserver/mapblockparser"
|
"mapserver/mapblockparser"
|
||||||
@ -48,6 +49,14 @@ func (a *MapBlockAccessor) FindLatestMapBlocks(mintime int64, limit int) ([]*map
|
|||||||
mblist := make([]*mapblockparser.MapBlock, 0)
|
mblist := make([]*mapblockparser.MapBlock, 0)
|
||||||
|
|
||||||
for _, block := range blocks {
|
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)
|
key := getKey(block.Pos)
|
||||||
|
|
||||||
mapblock, err := mapblockparser.Parse(block.Data, block.Mtime)
|
mapblock, err := mapblockparser.Parse(block.Data, block.Mtime)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"port": 8080,
|
"port": 8080,
|
||||||
"enableinitialrendering": true,
|
"enableinitialrendering": false,
|
||||||
"enableincrementalupdate": false,
|
"enableincrementalupdate": true,
|
||||||
"webdev": true,
|
"webdev": true,
|
||||||
"webapi": {
|
"webapi": {
|
||||||
"enablemapblock": true
|
"enablemapblock": true
|
||||||
|
Loading…
Reference in New Issue
Block a user