From 67ba40080c31c558a92f5433ac147489a771c58f Mon Sep 17 00:00:00 2001 From: kunitoki Date: Tue, 10 Apr 2012 00:58:18 +0200 Subject: [PATCH] - fixing remaining cerr traces --- include/mapnik/enumeration.hpp | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/include/mapnik/enumeration.hpp b/include/mapnik/enumeration.hpp index db7c7d6d3..7185299c4 100644 --- a/include/mapnik/enumeration.hpp +++ b/include/mapnik/enumeration.hpp @@ -25,6 +25,7 @@ // mapnik #include +#include // stl #include @@ -260,18 +261,20 @@ public: { if (our_strings_[i] == 0 ) { - std::cerr << "### FATAL: Not enough strings for enum " - << our_name_ << " defined in file '" << filename - << "' at line " << line_no << std::endl; + MAPNIK_LOG_FATAL(enumeration) + << "### FATAL: Not enough strings for enum " + << our_name_ << " defined in file '" << filename + << "' at line " << line_no; //std::exit(1); } } if ( std::string("") != our_strings_[THE_MAX]) { - std::cerr << "### FATAL: The string array for enum " << our_name_ - << " defined in file '" << filename << "' at line " << line_no - << " has too many items or is not terminated with an " - << "empty string." << std::endl; + MAPNIK_LOG_FATAL(enumeration) + << "### FATAL: The string array for enum " << our_name_ + << " defined in file '" << filename << "' at line " << line_no + << " has too many items or is not terminated with an " + << "empty string"; //std::exit(1); } return true;