Skip to content
Snippets Groups Projects
Commit ce23ca2a authored by Thorsten Vitt's avatar Thorsten Vitt
Browse files

Extended logging of the repository provider

parent 38deae28
No related branches found
No related tags found
No related merge requests found
......@@ -56,7 +56,7 @@ public TextGridRepProvider(final String endpoint) {
private TextGridRepProvider() {
this(DEFAULT_CONF_ENDPOINT);
logger.info("-- using default endpoint");
logger.warning("-- using default endpoint");
}
private static final ITextGridRep instance = new TextGridRepProvider();
......@@ -153,8 +153,9 @@ public InputStream getContent(final URI uri) throws ObjectNotFoundFault,
@Override
public SearchClient getPublicSearchClient() {
if (publicSearchClient == null) {
publicSearchClient = new SearchClient(
getConfValue(ConfservClientConstants.TG_SEARCH_PUBLIC));
String endpoint = getConfValue(ConfservClientConstants.TG_SEARCH_PUBLIC);
publicSearchClient = new SearchClient(endpoint);
logger.info("Instantiated public search client at: " + endpoint);
}
return publicSearchClient;
}
......@@ -169,10 +170,11 @@ public SearchClient getPublicSearchClient() {
*/
@Override
public SearchClient createPrivateSearchClient(final String sid) {
final SearchClient client = new SearchClient(
getConfValue(ConfservClientConstants.TG_SEARCH));
client.setSid(sid);
return client;
String confValue = getConfValue(ConfservClientConstants.TG_SEARCH);
final SearchClient endpoint = new SearchClient(confValue);
endpoint.setSid(sid);
logger.info("Created and configured a private search client at: " + endpoint);
return endpoint;
}
public static ITextGridRep getInstance() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment