diff --git a/packages/embark-ui/src/reducers/index.js b/packages/embark-ui/src/reducers/index.js index 9bb2fe677..6eb1d50bc 100644 --- a/packages/embark-ui/src/reducers/index.js +++ b/packages/embark-ui/src/reducers/index.js @@ -8,6 +8,12 @@ import {EMBARK_PROCESS_NAME, DARK_THEME, DEPLOYMENT_PIPELINES, DEFAULT_HOST, ELE const BN_FACTOR = 10000; const VOID_ADDRESS = '0x0000000000000000000000000000000000000000'; +// This is set so that the total number of logs allowed in the entities state is ELEMENTS_LIMIT +// multipled by the number of services we are monitoring for logs. As it stands currently, we +// are monitoring only "embark" and "blockchain" logs, hence we are allowing ELEMENTS_LIMIT * 2. +// TODO: If we update the number of services to show process logs, we need to update this number +// to reflect the new number of services. +const PROCESS_LOGS_LIMIT = ELEMENTS_LIMIT * 2; const entitiesDefaultState = { accounts: [], @@ -92,7 +98,7 @@ const filtrer = { }, processLogs: function(processLog, index, self) { if (processLog.id !== undefined) { - return index === self.findIndex((p) => p.id === processLog.id) && index <= ELEMENTS_LIMIT; + return index === self.findIndex((p) => p.id === processLog.id && p.name === processLog.name) && index <= PROCESS_LOGS_LIMIT; } return true; }, diff --git a/packages/embark/src/cmd/cmd_controller.js b/packages/embark/src/cmd/cmd_controller.js index 7c8137e46..e2b14882a 100644 --- a/packages/embark/src/cmd/cmd_controller.js +++ b/packages/embark/src/cmd/cmd_controller.js @@ -103,6 +103,7 @@ class EmbarkController { function initEngine(callback) { engine.init({}, () => { if (!options.useDashboard) { + engine.startService("embarkListener"); engine.logger.info('========================'.bold.green); engine.logger.info((__('Welcome to Embark') + ' ' + engine.version).yellow.bold); engine.logger.info('========================'.bold.green); @@ -118,7 +119,6 @@ class EmbarkController { engine.startService("processManager"); engine.startService("coreProcess"); - engine.startService("embarkListener"); engine.startService("blockchainListener"); engine.startService("serviceMonitor"); engine.startService("libraryManager");