aboutsummaryrefslogtreecommitdiff
path: root/go/game/map.go
diff options
context:
space:
mode:
Diffstat (limited to 'go/game/map.go')
-rw-r--r--go/game/map.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/go/game/map.go b/go/game/map.go
index 48ec8be3..f2cf1c53 100644
--- a/go/game/map.go
+++ b/go/game/map.go
@@ -3,7 +3,6 @@ package game
import (
"fmt"
"io"
- "log"
"math/rand"
"net/http"
"os"
@@ -15,6 +14,7 @@ import (
"gopkg.in/yaml.v3"
"muhq.space/muhqs-game/go/assets"
+ "muhq.space/muhqs-game/go/log"
)
const (
@@ -195,7 +195,7 @@ func (m *Map) FindFortificationConnections(x int, y int) (connections int, left,
// GetMap creates a new map from the definition retrieved for the map's name.
func GetMap(name string) (*Map, error) {
url := path.Join(assets.BASE_URL, MAP_URL_PART, name+".yml")
- log.Printf("loading map from %s\n", url)
+ log.Info("loading map", "url", url)
resp, err := http.Get(assets.PROTOCOL + url)
if err != nil {
log.Fatal(err)