1
0
Fork 0
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:
postmannen 2023-01-06 08:48:21 +01:00
parent f574d768cd
commit a95c36f0c3
2 changed files with 3 additions and 3 deletions

View file

@ -138,8 +138,8 @@ func (c *centralAuth) addPublicKey(proc process, msg Message) {
c.pki.nodeNotAckedPublicKeys.mu.Unlock() 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) 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.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. // deletePublicKeys to the db if the node do not exist, or if it is a new value.

View file

@ -37,11 +37,11 @@ func (s *server) readStartupFolder() {
} }
for _, fp := range filePaths { 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 { 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. // Read the content of each file.
readBytes, err := func(filePath string) ([]byte, error) { readBytes, err := func(filePath string) ([]byte, error) {