only print to clog when MAPNIK_DEBUG is defined

This commit is contained in:
Artem Pavlenko 2008-01-11 10:09:54 +00:00
parent 7b73a701b2
commit 30968b337e

View file

@ -92,12 +92,14 @@ namespace mapnik
throw std::runtime_error(string("Cannot load symbols: ") +
lt_dlerror());
}
std::cout << "size = " << params.size() << "\n";
#ifdef MAPNIK_DEBUG
std::clog << "size = " << params.size() << "\n";
parameters::const_iterator i = params.begin();
for (;i!=params.end();++i)
{
std::cout << i->first << "=" << i->second << "\n";
std::clog << i->first << "=" << i->second << "\n";
}
#endif
ds=datasource_ptr(create_datasource(params), datasource_deleter());
#ifdef MAPNIK_DEBUG