mirror of
https://github.com/postmannen/ctrl.git
synced 2024-12-14 12:37:31 +00:00
changed logging for authorizing keys
This commit is contained in:
parent
f574d768cd
commit
a95c36f0c3
2 changed files with 3 additions and 3 deletions
|
@ -138,8 +138,8 @@ func (c *centralAuth) addPublicKey(proc process, msg Message) {
|
|||
c.pki.nodeNotAckedPublicKeys.mu.Unlock()
|
||||
|
||||
er := fmt.Errorf("info: detected new public key for node: %v. This key will need to be authorized by operator to be allowed into the system", msg.FromNode)
|
||||
fmt.Printf(" * %v\n", er)
|
||||
c.pki.errorKernel.infoSend(proc, msg, er)
|
||||
c.pki.errorKernel.logConsoleOnlyIfDebug(er, c.pki.configuration)
|
||||
}
|
||||
|
||||
// deletePublicKeys to the db if the node do not exist, or if it is a new value.
|
||||
|
|
|
@ -37,11 +37,11 @@ func (s *server) readStartupFolder() {
|
|||
}
|
||||
|
||||
for _, fp := range filePaths {
|
||||
fmt.Printf("info: ranging filepaths, current filePath contains: %v\n", fp)
|
||||
log.Printf("info: ranging filepaths, current filePath contains: %v\n", fp)
|
||||
}
|
||||
|
||||
for _, filePath := range filePaths {
|
||||
fmt.Printf("info: reading and working on file from startup folder %v\n", filePath)
|
||||
log.Printf("info: reading and working on file from startup folder %v\n", filePath)
|
||||
|
||||
// Read the content of each file.
|
||||
readBytes, err := func(filePath string) ([]byte, error) {
|
||||
|
|
Loading…
Reference in a new issue