Skip to content

Commit

Permalink
additional logs
Browse files Browse the repository at this point in the history
  • Loading branch information
zkokelj committed Dec 19, 2024
1 parent 8f34663 commit f3fa54e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions tools/walletextension/main/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ func main() {
walletExtensionAddr := fmt.Sprintf("%s:%d", common.Localhost, config.WalletExtensionPortHTTP)
fmt.Printf("💡 Wallet extension started \n") // Some tests rely on seeing this message. Removed in next PR.
fmt.Printf("💡 Obscuro Gateway started - visit http://%s/\n", walletExtensionAddr)
fmt.Println("TESTING: This is a test version of the TEN Gateway")

select {}
}
10 changes: 9 additions & 1 deletion tools/walletextension/storage/database/cosmosdb/cosmosdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,15 @@ func (c *CosmosDB) GetUser(userID []byte) (*common.GWUser, error) {
if err != nil {
return nil, err
}
return user.user.ToGWUser()
fmt.Println("TESTING: got user from cosmos db for user", userID)
u, err := user.user.ToGWUser()
if err != nil {
return nil, err
}

fmt.Println("TESTING: user", userID, "has", len(u.Accounts), "accounts")
fmt.Println("TESTING: user accounts:", u.GetAllAddresses())
return u, err
}

func (c *CosmosDB) getUserDB(userID []byte) (userWithETag, error) {
Expand Down

0 comments on commit f3fa54e

Please sign in to comment.