Skip to content

Commit

Permalink
Remove extraneous logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Immutability, LLC committed Feb 3, 2018
1 parent 709d26a commit be1966e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion ethereum/path_accounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,6 @@ func (b *backend) pathAccountBalanceRead(ctx context.Context, req *logical.Reque
}

func (b *backend) pathAccountsCreate(ctx context.Context, req *logical.Request, data *framework.FieldData) (*logical.Response, error) {
b.Logger().Info("pathAccountsCreate")
rpc := data.Get("rpc_url").(string)
chainID := data.Get("chain_id").(string)
whitelist := data.Get("whitelist").([]string)
Expand Down
5 changes: 0 additions & 5 deletions ethereum/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,7 @@ func (b *backend) readAccount(ctx context.Context, req *logical.Request, path st

func (b *backend) contains(stringSlice []string, searchString string) bool {
for _, value := range stringSlice {
b.Logger().Info("Value", "address", value)
b.Logger().Info("Value", "searchString", searchString)
if value == searchString {
b.Logger().Info("Value", "boolean", true)
return true
}
}
Expand All @@ -261,8 +258,6 @@ func dedup(stringSlice []string) []string {
}

func (b *backend) isDebitAllowed(account *Account, toAddress string, amount *big.Int) (bool, error) {
b.Logger().Info("Blacklist", "list", account.Blacklist)
b.Logger().Info("Address", "address", toAddress)
if b.contains(account.Blacklist, toAddress) {
return false, fmt.Errorf("%s is blacklisted", toAddress)
}
Expand Down

0 comments on commit be1966e

Please sign in to comment.