From a949b13dac670014c37c7181e368b9c0c7a7f0f5 Mon Sep 17 00:00:00 2001 From: Joseph Richey Date: Wed, 6 Sep 2017 18:16:03 -0700 Subject: Fixes logging string for policies We should always log the descriptor not the entire policy structure. --- cmd/fscrypt/commands.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd') diff --git a/cmd/fscrypt/commands.go b/cmd/fscrypt/commands.go index fd90626..bd4827b 100644 --- a/cmd/fscrypt/commands.go +++ b/cmd/fscrypt/commands.go @@ -292,7 +292,7 @@ func unlockAction(c *cli.Context) error { } // Check if directory is already unlocked if policy.IsProvisioned() { - log.Printf("policy %s is already provisioned", policy) + log.Printf("policy %s is already provisioned", policy.Descriptor()) return newExitError(c, errors.Wrapf(ErrPolicyUnlocked, path)) } -- cgit v1.2.3