Skip to content

Commit 1d6856d

Browse files
authored
Fix logging format for API response status code
1 parent 5c05b60 commit 1d6856d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

geoblock.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ func (a *GeoBlock) callGeoJS(ipAddress string) (string, error) {
483483
}
484484

485485
if res.StatusCode != http.StatusOK {
486-
a.infoLogger("API response status code: %d", res.StatusCode)
486+
a.infoLogger.Printf("API response status code: %d", res.StatusCode)
487487
return "", fmt.Errorf("API response status code: %d", res.StatusCode)
488488
}
489489

0 commit comments

Comments
 (0)