db->next = 0;
if (service_settings && service_settings->num_settings > 0) {
- yaz_log(YLOG_LOG, "copying values from service settings");
+ yaz_log(YLOG_DEBUG, "copying settings from service to database %s settings", db->id);
db->num_settings = service_settings->num_settings;
db->settings = nmem_malloc(nmem, sizeof(struct settings*) * db->num_settings);
// Initialize database settings with service settings
}
else {
- yaz_log(YLOG_LOG, "No service settings delivered");
+ yaz_log(YLOG_DEBUG, "No service settings to database %s ", db->id);
db->num_settings = PZ_MAX_EOF;
db->settings = nmem_malloc(nmem, sizeof(struct settings*) * db->num_settings);
memset(db->settings, 0, sizeof(struct settings*) * db->num_settings);
if (!strcmp(p->id, id))
return p;
- yaz_log(YLOG_LOG, "new database from service %s values %p", service->id, service->settings);
+ yaz_log(YLOG_DEBUG, "new database %s under service %s values %p", id, service->id);
p = new_database_inherit_settings(id, service->nmem, service->settings);
p->next = service->databases;
return settings_index_lookup(service->dictionary, name, 0);
}
-static char *settings_name(struct conf_service *service, int offset)
+char *settings_name(struct conf_service *service, int offset)
{
assert(offset < service->dictionary->num);
return service->dictionary->dict[offset];
}
}
-void update_settings(struct setting *set, struct settings *settings, int offset, NMEM nmem)
+static void update_settings(struct setting *set, struct settings *settings, int offset, NMEM nmem)
{
struct setting **sp;
yaz_log(YLOG_LOG, "update service settings offset %d with %s=%s", offset, set->name, set->value);
-test_limit_limitmap_service.xml http://localhost:9763/search.pz2?command=init
+test_limit_limitmap_service.xml http://localhost:9763/search.pz2?command=init&service=limitmap
test_limit_limitmap_settings_1.xml http://localhost:9763/search.pz2?session=1&command=settings
http://localhost:9763/search.pz2?session=1&command=search&query=computer
4 http://localhost:9763/search.pz2?session=1&command=show&block=1