embark-area-51/lib/core
emizzle 728713a183
Embark blockchain logs when running standalone
When running `embark blockchain` followed by `embark run` previously, logs generated in the standalone `embark blockchain` process were black boxed and not accessible to the main Embark process.

This is fixed by creating a client IPC connection in the `embark blockchain` process that connects to the IPC server connection running in `embark run`. The connection is made by way of polling `ipc.connect` and continues polling even after a connection is made in case `embark run` is killed and restarted without restarting `embark blockchain`.

`LogHandler` was introduced to extrapolate functionality used in `ProcessLauncher` that needed to also be used in the standalone blockchain process. It also caps the number of logs that are stored in memory per process by a constant value defined in `constants.json`.

A `blockchain_listener` was module was created (and run inside of `embark run`) that listens for logs emitted by the `embark blockchain` client IPC and runs them through the `LogHandler`. Additionally, this module registers the API endpoints needed to handle requests for blockchain process logs in the cockpit (which were 404’ing before).

# Conflicts:
#	lib/modules/blockchain_process/blockchain.js
2018-10-25 12:51:43 +02:00
..
i18n use console.warn and yellow text for locale fallback msg 2018-08-23 15:00:25 -05:00
modules/coderunner return error message on console error 2018-10-23 10:59:16 +02:00
processes Embark blockchain logs when running standalone 2018-10-25 12:51:43 +02:00
config.js cherry-pick features/react-routes 2018-10-23 10:21:39 +02:00
core.js migrate all the code to ES6 2017-03-30 20:12:39 +09:00
engine.js Embark blockchain logs when running standalone 2018-10-25 12:51:43 +02:00
events.js first stab at refactor blockchain launcher 2018-10-23 09:55:10 +02:00
file.js Add remapping when parse file to support embark-solc 2018-10-22 19:25:19 +02:00
fs.js fix: make code compile again after rebase 2018-10-23 11:26:15 +02:00
ipc.js revert caca code 2018-10-23 10:03:25 +02:00
logger.js change colors and add command to process scss 2018-10-23 11:01:11 +02:00
plugin.js remove unneded console logs 2018-10-23 10:50:37 +02:00
plugins.js Add plugins and versions to backend tab 2018-10-23 10:32:02 +02:00
services_monitor.js fix services & processes; improve UI 2018-10-23 11:11:58 +02:00