only warn if plugin has no declared name - to avoid warnings on double registration of valid plugins

This commit is contained in:
Dane Springmeyer 2011-12-02 19:33:38 -08:00
parent 742fb891e6
commit 9d4290f686

View file

@ -226,9 +226,9 @@ void datasource_cache::register_datasources(const std::string& str)
#endif
registered_=true;
}
else
else if (!ds_name)
{
std::clog << "Problem loading plugin library '" << itr->path().string() << "' (plugin is lacking compatible interface" << std::endl;
std::clog << "Problem loading plugin library '" << itr->path().string() << "' (plugin is lacking compatible interface)" << std::endl;
}
}
else