[Groonga-commit] droonga/express-droonga at 5ba75f9 [master] Report result of updateHostNamesFromCluster by default

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Nov 5 13:12:49 JST 2014


YUKI Hiroshi	2014-11-05 13:12:49 +0900 (Wed, 05 Nov 2014)

  New Revision: 5ba75f98551e9211645092b7ee0d5d260a242549
  https://github.com/droonga/express-droonga/commit/5ba75f98551e9211645092b7ee0d5d260a242549

  Message:
    Report result of updateHostNamesFromCluster by default

  Modified files:
    lib/droonga-protocol/connection-pool.js

  Modified: lib/droonga-protocol/connection-pool.js (+7 -1)
===================================================================
--- lib/droonga-protocol/connection-pool.js    2014-11-05 13:06:31 +0900 (8ca6551)
+++ lib/droonga-protocol/connection-pool.js    2014-11-05 13:12:49 +0900 (f804804)
@@ -170,8 +170,14 @@ ConnectionPool.prototype = {
     return this.getHostNamesFromCluster()
                  .then((function(hostNames) {
                    this.hostNames = hostNames;
+                   this._params.logger.info('List of droonga-engine hosts is successfully initialized from the cluster.');
+                   this._params.logger.info(hostNames);
                    return hostNames;
-                 }).bind(this));
+                 }).bind(this))
+                 .catch(function(error) {
+                   this._params.logger.error('Failed to initialize the list of droonga-engine hosts from the cluster.');
+                   this._params.logger.error(error);
+                 });
   },
 
   startWatchClusterChanges: function() {
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index