Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(@embark/transaction-logger): Circular JSON log and unknown contra…
…ct log level ## Issue Transaction logs for contracts that were unknown to Embark (ie not in the dapp) would often log super large objects (filling the terminal) that were not formatted with spaces so were hard to read without actually be that useful. In addition, occasionally the object logged would throw the error `TypeError: Converting circular structure to JSON`. ## Fix Set the log level for transaction logs that are not from a known contract to `debug`, so that they do not flood the terminal with often usused information. Use `util.inspect` to print the transaction log instead of `JSON.stringify` to prevent circular structure errors.
- Loading branch information