aboutsummaryrefslogtreecommitdiff
path: root/cmd/fscrypt
diff options
context:
space:
mode:
authorJoseph Richey <joerichey@google.com>2017-09-06 18:16:03 -0700
committerGitHub <noreply@github.com>2017-09-06 18:16:03 -0700
commita949b13dac670014c37c7181e368b9c0c7a7f0f5 (patch)
treea3870fa79d5946bac4b02f450288c8c9e5758659 /cmd/fscrypt
parent0879b8ffcbbac29c282084eea2888194371113fa (diff)
Fixes logging string for policies
We should always log the descriptor not the entire policy structure.
Diffstat (limited to 'cmd/fscrypt')
-rw-r--r--cmd/fscrypt/commands.go2
1 files changed, 1 insertions, 1 deletions
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))
}