add body log on gateway connect

This commit is contained in:
Yanislav Igonin 2022-02-28 09:14:01 +02:00
parent 2393d33421
commit 46a9a95909

View File

@ -30,9 +30,10 @@ func Connect() {
log.Panicln(err) log.Panicln(err)
} }
//We Read the response body on the line below. //We Read the response body on the line below.
_, err = ioutil.ReadAll(resp.Body) body, err := ioutil.ReadAll(resp.Body)
if err != nil { if err != nil {
log.Panicln(err) log.Panicln(err)
} }
log.Println(string(body))
log.Println("gateway - online") log.Println("gateway - online")
} }