immutability-io / vault-ethereum

A plugin that turns Vault into an Ethereum wallet.
243 stars 65 forks source link

Finding Logs for the ethereum plugin #58

Closed ppeinsold closed 5 years ago

ppeinsold commented 5 years ago

Want to see the exceptions/logs that vault is throwing when I use the /debit endpoint.

Detailed Description

Ethereum plugin returns 500 error when /debit endpoint is used. Strange thing is, that this behaviour is not stable. Sometimes it throws the error sometimes not with same input data. I now want to debug it by first having a look at some log output, but I cannot find any logs.

Can you tell me are there any logs that I can use to debug the problem? Thank you in advance!

cypherhat commented 5 years ago

Logs end up where you have Vault configured to log.

ppeinsold commented 5 years ago

Alright, do you know where this setting is made? I think its set to vault/logs, the folder is there but empty. Still vault-ethereum throws 500 errors and I need to find the reason. Any suggestion? Thank you!

cypherhat commented 5 years ago

This describes setting the log level.

If you are running Vault on a Mac, and you start it like this:

$ /usr/local/bin/vault server -config /Users/cypherhat/etc/vault.d/vault.hcl > /Users/cypherhat/etc/vault.d/logs/errors.log &

Then your error logs will be in /Users/cypherhat/etc/vault.d/logs/errors.log.

Audit logs are configured differently.