Skip to content

Commit

Permalink
clean up some log messages
Browse files Browse the repository at this point in the history
Matches from the local keyring won't have usernames, and attached signatures
won't have a Source().
  • Loading branch information
ellotheth committed Mar 19, 2016
1 parent 2e7792d commit d0f04ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lookup/lookup.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ func Key(service KeyService, query string, single bool) (openpgp.KeyRing, error)
if err != nil {
return nil, err
}
log.Printf("Using %v (%v)", match.Username, ring[0].PrimaryKey.KeyIdShortString())
log.Printf("Verifying your script against\n%v", match)

return ring, nil
}
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func main() {
log.Panic(err)
}

log.Println("Signature", signature.Source(), "verified!")
log.Println("Signature verified!")
}

// run the script
Expand Down

0 comments on commit d0f04ff

Please sign in to comment.