Mercurial > hg > svcore
comparison base/PropertyContainer.cpp @ 687:06f13a3b9e9e debug-output
Convert many cerrs to DEBUGs
author | Chris Cannam |
---|---|
date | Mon, 16 May 2011 17:19:09 +0100 |
parents | b4a8d8221eaf |
children | 1424aa29ae95 |
comparison
equal
deleted
inserted
replaced
686:b4a8d8221eaf | 687:06f13a3b9e9e |
---|---|
190 if (value >= 0) success = true; | 190 if (value >= 0) success = true; |
191 else value = 0; | 191 else value = 0; |
192 break; | 192 break; |
193 | 193 |
194 case InvalidProperty: | 194 case InvalidProperty: |
195 std::cerr << "PropertyContainer::convertPropertyStrings: Invalid property name \"" << name << "\"" << std::endl; | 195 DEBUG << "PropertyContainer::convertPropertyStrings: Invalid property name \"" << name << "\"" << endl; |
196 return false; | 196 return false; |
197 } | 197 } |
198 | 198 |
199 if (success) return true; | 199 if (success) return true; |
200 | 200 |
205 int i = valueString.toInt(&ok); | 205 int i = valueString.toInt(&ok); |
206 if (!ok) { | 206 if (!ok) { |
207 std::cerr << "PropertyContainer::convertPropertyStrings: Unable to parse value string \"" << valueString << "\"" << std::endl; | 207 std::cerr << "PropertyContainer::convertPropertyStrings: Unable to parse value string \"" << valueString << "\"" << std::endl; |
208 return false; | 208 return false; |
209 } else if (i < min || i > max) { | 209 } else if (i < min || i > max) { |
210 std::cerr << "PropertyContainer::convertPropertyStrings: Property value \"" << i << "\" outside valid range " << min << " to " << max << std::endl; | 210 DEBUG << "PropertyContainer::convertPropertyStrings: Property value \"" << i << "\" outside valid range " << min << " to " << max << endl; |
211 return false; | 211 return false; |
212 } | 212 } |
213 | 213 |
214 value = i; | 214 value = i; |
215 return true; | 215 return true; |