Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(tools): fabric AIO supervisord forwards logs to container
This commit is meant to make it much easier to debug issues with the Fabric 2.x AIO container image in the future when new bugs (inevitably) arise. Meaning that the logs of the child processess such as the fabric network creator script or the docker daemon will all be piped through to the logs of the container itself instead of just being dumped into log files under /var/log/... which has the upside of not having to shell into the container when something goes wrong and one wishes to debug what happened. Instead the logs of the container will show all the information right away. In addition to the above change a flag was added to the FabricTestLedger class' constructor options so that one can tell the class to dump the continer's log stream straight onto it's own logger meaning that now if you are debugging a test case you will be able to see all the logs that are being output straight in the logs of the test case itself. This can be very spammy at times, hence the flag that can be used to turn it on or off depending on what is needed more. One more small change that we made to help debugging: The supervisord config file now specifies the loglevel of supervisord as debug instead of info. Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
- Loading branch information