From 2b2064c3cb6a8f5d82f9344709657d967388520d Mon Sep 17 00:00:00 2001 From: postmannen Date: Sat, 28 May 2022 07:24:47 +0200 Subject: [PATCH] changed log lines --- node_auth.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/node_auth.go b/node_auth.go index d55a096..2f96bee 100644 --- a/node_auth.go +++ b/node_auth.go @@ -129,7 +129,7 @@ func (n *nodeAcl) loadFromFile() error { return err } - fmt.Printf("\n ***** DEBUG: Loaded existing acl's from file: %v\n\n", n.aclAndHash.Hash) + log.Printf("\n ***** DEBUG: Loaded existing acl's from file: %v\n\n", n.aclAndHash.Hash) return nil } @@ -222,7 +222,7 @@ func (p *publicKeys) loadFromFile() error { return err } - fmt.Printf("\n ***** DEBUG: Loaded existing keys from file: %v\n\n", p.keysAndHash.Hash) + log.Printf("\n ***** DEBUG: Loaded existing keys from file: %v\n\n", p.keysAndHash.Hash) return nil } @@ -393,11 +393,11 @@ func (n *nodeAuth) verifySignature(m Message) bool { // verifyAcl func (n *nodeAuth) verifyAcl(m Message) bool { - fmt.Printf(" * DEBUG: verifyAcl, method: %v\n", m.Method) + log.Printf(" * DEBUG: verifyAcl, method: %v\n", m.Method) // NB: Only enable acl checking for REQCliCommand for now. if m.Method != REQCliCommand { - // fmt.Printf(" * DEBUG: verifyAcl: WAS OTHER THAN CLI COMMAND\n") + log.Printf(" * DEBUG: verifyAcl: WAS OTHER THAN CLI COMMAND\n") return true } @@ -421,7 +421,7 @@ func (n *nodeAuth) verifyAcl(m Message) bool { log.Printf(" * DEBUG: verifyAcl: The command was FOUND in the acl\n") - fmt.Printf(" * DEBUG: verifyAcl, result: %v, fromNode: %v, method: %v\n", ok, m.FromNode, m.Method) + log.Printf(" * DEBUG: verifyAcl, result: %v, fromNode: %v, method: %v\n", ok, m.FromNode, m.Method) return ok }