summaryrefslogtreecommitdiff
path: root/internal/cryptocore
diff options
context:
space:
mode:
authorJakob Unterwurzacher2018-02-28 09:02:18 +0100
committerJakob Unterwurzacher2018-02-28 09:02:18 +0100
commitb96e3ee2717531e842c492c3a6799d1d0c3e51cb (patch)
tree3597324345ac4189c833b968465f07910dcbc534 /internal/cryptocore
parentac8f8bf4328d6d5c346004c7c0ef8e651aeaef93 (diff)
tlog: stop embedding log.Logger to prevent mistakes
A few places have called tlog.Warn.Print, which directly calls into log.Logger due to embedding, losing all features of tlog. Stop embedding log.Logger to make sure the internal functions cannot be called accidentially and fix (several!) instances that did.
Diffstat (limited to 'internal/cryptocore')
-rw-r--r--internal/cryptocore/cryptocore.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/cryptocore/cryptocore.go b/internal/cryptocore/cryptocore.go
index bd30029..d66f390 100644
--- a/internal/cryptocore/cryptocore.go
+++ b/internal/cryptocore/cryptocore.go
@@ -163,7 +163,7 @@ func (c *CryptoCore) Wipe() {
w := c.AEADCipher.(wiper)
w.Wipe()
} else {
- tlog.Debug.Print("CryptoCore.Wipe: Only nil'ing stdlib refs")
+ tlog.Debug.Printf("CryptoCore.Wipe: Only nil'ing stdlib refs")
}
// We have no access to the keys (or key-equivalents) stored inside the
// Go stdlib. Best we can is to nil the references and force a GC.