more infos on incremental rendering

This commit is contained in:
Thomas Rudin 2019-02-08 17:45:16 +01:00
parent 430543284d
commit eb70645a70

View File

@ -50,10 +50,14 @@ func incrementalRender(ctx *app.App, jobs chan *coords.TileCoords) {
ctx.WebEventbus.Emit("incremental-render-progress", &ev)
millisDiff := time.Now().Unix() - result.LastMtime
fields := logrus.Fields{
"mapblocks": len(result.List),
"tiles": tiles,
"elapsed": elapsed,
"mapblocks": len(result.List),
"tiles": tiles,
"elapsed": elapsed,
"lastMtime": result.LastMtime,
"secondsDiff": millisDiff / 1000,
}
logrus.WithFields(fields).Info("incremental rendering")
}