|
@@ -143,7 +143,7 @@ func (c *Connection) Close() {
|
|
|
func (c *Connection) RcvMsgFromClient() {
|
|
|
conn := c.Conn
|
|
|
host := conn.RemoteAddr().String()
|
|
|
- server.Log.Infof("recieve new connection from %s", host)
|
|
|
+ server.Log.Infof("receive new connection from %s", host)
|
|
|
for {
|
|
|
msg, err := DecodeOneMessage(conn)
|
|
|
if err != nil {
|
|
@@ -196,7 +196,7 @@ func (c *Connection) RcvMsgFromClient() {
|
|
|
}
|
|
|
err = c.ValidateToken(token)
|
|
|
if err != nil {
|
|
|
- server.Log.Errorf("validate token error : %v", err)
|
|
|
+ server.Log.Errorf("validate device token error. deviceid : %v, token : %2X, error: %v", c.DeviceCode, token, err)
|
|
|
ret = RetCodeNotAuthorized
|
|
|
c.Close()
|
|
|
return
|