mirror of
https://codeberg.org/andyscott/OpenWeather-gRPC-API.git
synced 2024-12-21 12:13:09 -05:00
Minor update to log outputs
This commit is contained in:
parent
18666014b6
commit
90313c2f4f
1 changed files with 2 additions and 2 deletions
|
@ -105,14 +105,14 @@ func fetchForecast(url string) (string, error) {
|
||||||
|
|
||||||
res, err := http.Get(url)
|
res, err := http.Get(url)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("Error fetching extended weather: %v\n", err)
|
log.Printf("Error fetching forecast: %v\n", err)
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
defer res.Body.Close()
|
defer res.Body.Close()
|
||||||
|
|
||||||
body, err := ioutil.ReadAll(res.Body)
|
body, err := ioutil.ReadAll(res.Body)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("Error reading extending weather: %v\n", err)
|
log.Printf("Error reading response from OpenWeather: %v\n", err)
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue