Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cb for eventhub #159

Merged
merged 2 commits into from Oct 10, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion app.js
Expand Up @@ -163,8 +163,10 @@ if (config_error) {
if (err) {
startup_unsuccessful();
} else {
console.log('\n');
logger.debug('Detected that we have launched successfully before');
logger.debug('Welcome back - Initiating start up\n\n');
logger.debug('Welcome back - Marbles is ready');
logger.debug('Open your browser to http://' + host + ':' + port + ' and login as "admin"\n\n');
}
});
});
Expand Down
4 changes: 3 additions & 1 deletion utils/fc_wrangler/invoke_cc.js
Expand Up @@ -116,7 +116,7 @@ module.exports = function (g_options, logger) {
options.target_event_url = null; //don't use eventHub
}
if (options.target_event_url) {
logger.debug('[fcw] listening to tx event. url:', options.target_event_url);
logger.debug('[fcw] listening to transaction event. url:', options.target_event_url);
eventHub = client.newEventHub();
eventHub.setPeerAddr(options.target_event_url, options.peer_tls_opts);
eventHub.connect();
Expand All @@ -139,6 +139,8 @@ module.exports = function (g_options, logger) {
return cb(null); //all good, pass it back
} else return;
}
}, function (disconnectMsg) { //callback whenever eventHub is disconnected, normal
logger.debug('[fcw] transaction event is disconnected');
});
} else {
logger.debug('[fcw] will not use tx event');
Expand Down