mirror of
https://github.com/yanislav-igonin/micrach
synced 2025-04-20 03:40:33 +03:00
add body log on gateway connect
This commit is contained in:
parent
2393d33421
commit
46a9a95909
@ -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")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user