diff --git a/mapblockaccessor/logger.go b/mapblockaccessor/logger.go deleted file mode 100644 index f7ca44f..0000000 --- a/mapblockaccessor/logger.go +++ /dev/null @@ -1,11 +0,0 @@ -package mapblockaccessor - -import ( - "github.com/sirupsen/logrus" -) - -var log *logrus.Entry - -func init() { - log = logrus.WithFields(logrus.Fields{"prefix": "mapblockaccessor"}) -} diff --git a/mapblockrenderer/renderer.go b/mapblockrenderer/renderer.go index d302209..90e9f04 100644 --- a/mapblockrenderer/renderer.go +++ b/mapblockrenderer/renderer.go @@ -75,11 +75,11 @@ func addColorComponent(c *color.RGBA, value int) *color.RGBA { func (r *MapBlockRenderer) Render(pos1, pos2 *coords.MapBlockCoords) (*image.NRGBA, error) { if pos1.X != pos2.X { - return nil, errors.New("X does not line up") + return nil, errors.New("x does not line up") } if pos1.Z != pos2.Z { - return nil, errors.New("Z does not line up") + return nil, errors.New("z does not line up") } renderedMapblocks.Inc() diff --git a/mapblockrenderer/renderer_test.go b/mapblockrenderer/renderer_test.go index 3d933d4..a53ebca 100644 --- a/mapblockrenderer/renderer_test.go +++ b/mapblockrenderer/renderer_test.go @@ -21,7 +21,7 @@ func TestSimpleRender(t *testing.T) { logrus.SetLevel(logrus.InfoLevel) layers := []*layer.Layer{ - &layer.Layer{ + { Id: 0, Name: "Base", From: -16, diff --git a/tilerenderer/renderer_benchmark_test.go b/tilerenderer/renderer_benchmark_test.go index 04cd4ae..dbb89ce 100644 --- a/tilerenderer/renderer_benchmark_test.go +++ b/tilerenderer/renderer_benchmark_test.go @@ -54,7 +54,7 @@ func BenchmarkTileRender(b *testing.B) { tdb, _ := tiledb.New(tiletmpdir) layers := []*layer.Layer{ - &layer.Layer{ + { Id: 0, Name: "Base", From: -16, diff --git a/tilerenderer/renderer_test.go b/tilerenderer/renderer_test.go index 4351fef..0b79a42 100644 --- a/tilerenderer/renderer_test.go +++ b/tilerenderer/renderer_test.go @@ -54,7 +54,7 @@ func TestTileRender(t *testing.T) { tdb, _ := tiledb.New(tiletmpdir) layers := []*layer.Layer{ - &layer.Layer{ + { Id: 0, Name: "Base", From: -16,