소스 검색

[indexer] Provide more information when not detecting Solr Cloud mode

Romain Rigaux 11 년 전
부모
커밋
521aedb
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      desktop/libs/indexer/src/indexer/controller.py

+ 2 - 1
desktop/libs/indexer/src/indexer/controller.py

@@ -57,7 +57,8 @@ class CollectionManagerController(object):
       try:
         api.collections()
         setattr(self, '_solr_cloud_mode', True)
-      except:
+      except Exception, e:
+        LOG.info('Non SolrCloud server: %s' % e)
         setattr(self, '_solr_cloud_mode', False)
     return getattr(self, '_solr_cloud_mode')