Skip to content
Snippets Groups Projects

Streamline Logging to be more useful for using the proto-kms

Merged Martin Stiemerling requested to merge log-system-improvement into main
Files
9
+ 3
2
@@ -3,9 +3,10 @@ package kms
import (
"errors"
"fmt"
"log"
"sync"
log "github.com/sirupsen/logrus"
"code.fbi.h-da.de/danet/proto-kms/quantumlayer"
)
@@ -36,7 +37,7 @@ func (ks *kmsKeyStore) addKey(bulkKeyId int64, keyToadd []byte) {
defer ks.keyStoreMutex.Unlock()
// test for collisions
if _, notThere := ks.keyStore[newKeyElement.keyID]; notThere {
log.Printf("Whop: addKey collission of key id %s for bulkKeyID %d", newKeyElement.keyID, bulkKeyId)
log.Errorf("Whop: addKey collission of key id %s for bulkKeyID %d", newKeyElement.keyID, bulkKeyId)
return
}
// ok to add
Loading