Update log level and add some TODOs
This commit is contained in:
parent
8a4053f29f
commit
c7835e8811
@ -61,7 +61,7 @@ func writeBackup(db *bolt.DB, dbFile string) error {
|
||||
return fmt.Errorf("os.Rename: %v", err)
|
||||
}
|
||||
|
||||
log.Debugf("Database backup written to %s", backupPath)
|
||||
log.Tracef("Database backup written to %s", backupPath)
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
@ -58,6 +58,8 @@ func setVoteChoices(c *gin.Context) {
|
||||
for agenda, choice := range voteChoices {
|
||||
for _, walletClient := range walletClients {
|
||||
err = walletClient.SetVoteChoice(agenda, choice, ticket.Hash)
|
||||
// TODO: This will error if the wallet does not know about the ticket yet.
|
||||
// TODO: We shouldn't return on first error - we want to try all wallets.
|
||||
if err != nil {
|
||||
log.Errorf("SetVoteChoice failed: %v", err)
|
||||
sendErrorResponse("dcrwallet RPC error", http.StatusInternalServerError, c)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user