Skip to content

Commit

Permalink
Fixes logging string for policies
Browse files Browse the repository at this point in the history
We should always log the descriptor not the entire policy structure.
  • Loading branch information
josephlr committed Sep 7, 2017
1 parent 0879b8f commit a949b13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/fscrypt/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}

Expand Down

0 comments on commit a949b13

Please sign in to comment.