Skip to content

Commit 9801246

Browse files
committed
fix non-constant format string calls to XXXfwq
1 parent c6c4b96 commit 9801246

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cache/cache.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func ParseKey(str string) (*Key, error) {
7575
val: zxy[0],
7676
}
7777

78-
log.Printf(err.Error())
78+
log.Printf("cache: invalid file key: %s", err.Error())
7979
return nil, err
8080
}
8181

@@ -90,7 +90,7 @@ func ParseKey(str string) (*Key, error) {
9090
val: zxy[1],
9191
}
9292

93-
log.Printf(err.Error())
93+
log.Printf("cache: invalid file key: %s", err.Error())
9494
return nil, err
9595
}
9696

@@ -106,7 +106,7 @@ func ParseKey(str string) (*Key, error) {
106106
val: zxy[2],
107107
}
108108

109-
log.Printf(err.Error())
109+
log.Printf("cache: invalid file key: %s", err.Error())
110110
return nil, err
111111
}
112112
key.Y = uint(placeholder)

server/handle_map_layer_zxy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ func (req HandleMapLayerZXY) ServeHTTP(w http.ResponseWriter, r *http.Request) {
123123
m, err := req.Atlas.Map(req.mapName)
124124
if err != nil {
125125
errMsg := fmt.Sprintf("map (%v) not configured. check your config file", req.mapName)
126-
log.Errorf(errMsg)
126+
log.Error(errMsg)
127127
http.Error(w, errMsg, http.StatusNotFound)
128128
return
129129
}

0 commit comments

Comments
 (0)