mirror of
https://github.com/postmannen/ctrl.git
synced 2025-01-18 21:59:30 +00:00
only logging equal keys to console, and do not send to errorKernel
This commit is contained in:
parent
8d017c072d
commit
ec612101df
1 changed files with 4 additions and 3 deletions
|
@ -106,12 +106,13 @@ func (m methodREQKeysRequestUpdate) handler(proc process, message Message, node
|
||||||
|
|
||||||
// Check if the received hash is the same as the one currently active,
|
// Check if the received hash is the same as the one currently active,
|
||||||
if bytes.Equal(proc.centralAuth.pki.nodesAcked.keysAndHash.Hash[:], message.Data) {
|
if bytes.Equal(proc.centralAuth.pki.nodesAcked.keysAndHash.Hash[:], message.Data) {
|
||||||
er := fmt.Errorf("info: methodREQKeysRequestUpdate: NODE AND CENTRAL HAVE EQUAL KEYS, NOTHING TO DO, EXITING HANDLER")
|
er := fmt.Errorf("info: methodREQKeysRequestUpdate: node %v and central have equal keys, nothing to do, exiting key update handler", message.FromNode)
|
||||||
proc.errorKernel.infoSend(proc, message, er)
|
// proc.errorKernel.infoSend(proc, message, er)
|
||||||
|
proc.errorKernel.logConsoleOnlyIfDebug(er, proc.configuration)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
er = fmt.Errorf("info: methodREQKeysRequestUpdate: NODE AND CENTRAL HAD NOT EQUAL KEYS, PREPARING TO SEND NEW VERSION OF KEYS")
|
er = fmt.Errorf("info: methodREQKeysRequestUpdate: node %v and central had not equal keys, preparing to send new version of keys", message.FromNode)
|
||||||
proc.errorKernel.logConsoleOnlyIfDebug(er, proc.configuration)
|
proc.errorKernel.logConsoleOnlyIfDebug(er, proc.configuration)
|
||||||
|
|
||||||
er = fmt.Errorf("info: methodREQKeysRequestUpdate: marshalling new keys and hash to send: map=%v, hash=%v", proc.centralAuth.pki.nodesAcked.keysAndHash.Keys, proc.centralAuth.pki.nodesAcked.keysAndHash.Hash)
|
er = fmt.Errorf("info: methodREQKeysRequestUpdate: marshalling new keys and hash to send: map=%v, hash=%v", proc.centralAuth.pki.nodesAcked.keysAndHash.Keys, proc.centralAuth.pki.nodesAcked.keysAndHash.Hash)
|
||||||
|
|
Loading…
Add table
Reference in a new issue