And the fix wasn't right
This commit is contained in:
parent
f1aae4f2a4
commit
47ea2b9324
2 changed files with 3 additions and 3 deletions
|
@ -46,10 +46,10 @@ func handleClient(c net.Conn) {
|
||||||
|
|
||||||
// Get command
|
// Get command
|
||||||
var cmd tg.ClientCommand
|
var cmd tg.ClientCommand
|
||||||
err = json.Unmarshal(bytes, &cmd)
|
err = json.Unmarshal(buf, &cmd)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("[handleClient] Can't parse JSON: %s\r\n", err.Error())
|
log.Printf("[handleClient] Can't parse JSON: %s\r\n", err.Error())
|
||||||
log.Printf("%s\n", string(bytes))
|
log.Printf("%s\n", string(buf))
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,7 @@ func CreateBrokerClient(brokerAddr string, updateFn UpdateHandler) error {
|
||||||
err = json.Unmarshal(buf, &update)
|
err = json.Unmarshal(buf, &update)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("[tg - CreateBrokerClient] ERROR reading JSON: %s\r\n", err.Error())
|
log.Printf("[tg - CreateBrokerClient] ERROR reading JSON: %s\r\n", err.Error())
|
||||||
log.Printf("%s\n", string(bytes))
|
log.Printf("%s\n", string(buf))
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue