]> git.apps.os.sepia.ceph.com Git - fscrypt.git/commitdiff
Fixes logging string for policies
authorJoseph Richey <joerichey@google.com>
Thu, 7 Sep 2017 01:16:03 +0000 (18:16 -0700)
committerGitHub <noreply@github.com>
Thu, 7 Sep 2017 01:16:03 +0000 (18:16 -0700)
We should always log the descriptor not the entire policy structure.

cmd/fscrypt/commands.go

index fd90626be5e9b5a9dbe9cc7d583dff1a7136a29a..bd4827b8b7aef99953df1ea3e3e97566344a4394 100644 (file)
@@ -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))
        }