|
@@ -106,8 +106,7 @@ class SearchController(object):
|
|
|
doc2.save()
|
|
doc2.save()
|
|
|
result['status'] = 0
|
|
result['status'] = 0
|
|
|
except Exception, e:
|
|
except Exception, e:
|
|
|
- print e
|
|
|
|
|
- LOG.warn('Error copying collection: %s' % e)
|
|
|
|
|
|
|
+ LOG.exception('Error copying collection')
|
|
|
result['message'] = unicode(str(e), "utf8")
|
|
result['message'] = unicode(str(e), "utf8")
|
|
|
|
|
|
|
|
return result
|
|
return result
|
|
@@ -128,12 +127,12 @@ class SearchController(object):
|
|
|
try:
|
|
try:
|
|
|
indexes = self.get_solr_collection().keys()
|
|
indexes = self.get_solr_collection().keys()
|
|
|
except:
|
|
except:
|
|
|
- pass
|
|
|
|
|
|
|
+ LOG.exception('failed to get indexes')
|
|
|
|
|
|
|
|
try:
|
|
try:
|
|
|
indexes += SolrApi(SOLR_URL.get(), self.user).aliases().keys()
|
|
indexes += SolrApi(SOLR_URL.get(), self.user).aliases().keys()
|
|
|
except:
|
|
except:
|
|
|
- pass
|
|
|
|
|
|
|
+ LOG.exception('failed to get index aliases')
|
|
|
|
|
|
|
|
if show_all or not indexes:
|
|
if show_all or not indexes:
|
|
|
return indexes + SolrApi(SOLR_URL.get(), self.user).cores().keys()
|
|
return indexes + SolrApi(SOLR_URL.get(), self.user).cores().keys()
|