forked from External/grumble
Enhance some client log calls.
This commit is contained in:
parent
4f162157ca
commit
6b042851dc
1 changed files with 5 additions and 5 deletions
10
server.go
10
server.go
|
|
@ -508,12 +508,12 @@ func (server *Server) handleAuthenticate(client *Client, msg *Message) {
|
||||||
// Setup the cryptstate for the client.
|
// Setup the cryptstate for the client.
|
||||||
client.crypt, err = cryptstate.New()
|
client.crypt, err = cryptstate.New()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
client.Panic(err.String())
|
client.Panicf("%v", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
err = client.crypt.GenerateKey()
|
err = client.crypt.GenerateKey()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
client.Panic(err.String())
|
client.Panicf("%v", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -525,7 +525,7 @@ func (server *Server) handleAuthenticate(client *Client, msg *Message) {
|
||||||
ServerNonce: client.crypt.EncryptIV[0:],
|
ServerNonce: client.crypt.EncryptIV[0:],
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
client.Panic(err.String())
|
client.Panicf("%v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add codecs
|
// Add codecs
|
||||||
|
|
@ -643,7 +643,7 @@ func (server *Server) finishAuthenticate(client *Client) {
|
||||||
sync.Permissions = proto.Uint64(uint64(perm))
|
sync.Permissions = proto.Uint64(uint64(perm))
|
||||||
}
|
}
|
||||||
if err := client.sendProtoMessage(MessageServerSync, sync); err != nil {
|
if err := client.sendProtoMessage(MessageServerSync, sync); err != nil {
|
||||||
client.Panic(err.String())
|
client.Panicf("%v", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -653,7 +653,7 @@ func (server *Server) finishAuthenticate(client *Client) {
|
||||||
ImageMessageLength: proto.Uint32(1000),
|
ImageMessageLength: proto.Uint32(1000),
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
client.Panic(err.String())
|
client.Panicf("%v", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue