satellite/payments/storjscan: add info level log statement when a user successfully claims a wallet address.

If we need to restore the satelliteDB from a backup, we must preserve the user - storj token wallet address association. This commit adds a log statement of this information after a user successfully claims a wallet. We can perform a SQL update to reassign the wallet address to the user if needed.

Change-Id: Ia5c25d7ac57e59b35865d74068196e42bc4ffe87
This commit is contained in:
Jennifer Johnson 2022-09-28 12:59:18 -04:00 committed by Storj Robot
parent 92b25c8c96
commit 47f9915a27

View File

@ -73,6 +73,9 @@ func (service *Service) Claim(ctx context.Context, userID uuid.UUID) (_ blockcha
if err != nil {
return blockchain.Address{}, ErrService.Wrap(err)
}
service.log.Info("STORJ token wallet claimed",
zap.String("userid", userID.String()),
zap.String("wallet address", address.Hex()))
return address, nil
}