Changed log level of some warnings from DEBUG to WARNING, disabled some...

Changed log level of some warnings from DEBUG to WARNING, disabled some verbose debug messages in TGT
parent c7c7a04a
......@@ -189,7 +189,7 @@ namespace campvis {
if (performConversion) {
tgtAssert(false, "Conversion to AbstractImageRepresentationItk not implemented - is it really needed?");
LDEBUG("Could not convert to AbstractImageRepresentationItk");
LWARNING("Could not convert to AbstractImageRepresentationItk");
}
return 0;
......
......@@ -253,7 +253,7 @@ namespace campvis {
}
// could not create a suitable representation
LDEBUG("Could not create a " + std::string(typeid(T*).name()) + " representation.");
LWARNING("Could not create a " + std::string(typeid(T*).name()) + " representation.");
return 0;
}
......
......@@ -126,11 +126,11 @@ namespace campvis {
#ifdef CAMPVIS_DEBUG
if (!createTexCoordsBuffer && !(it->getTextureCoordinates().empty()))
LDEBUG("Presence of texture coordinates in faces not consistent, not generating texture coordinates VBO!");
LWARNING("Presence of texture coordinates in faces not consistent, not generating texture coordinates VBO!");
if (!createColorsBuffer && !(it->getColors().empty()))
LDEBUG("Presence of colors in faces not consistent, not generating colors VBO!");
LWARNING("Presence of colors in faces not consistent, not generating colors VBO!");
if (!createNormalsBuffer && !(it->getNormals().empty()))
LDEBUG("Presence of normals in faces not consistent, not generating normals VBO!");
LWARNING("Presence of normals in faces not consistent, not generating normals VBO!");
#endif
}
......
......@@ -209,7 +209,7 @@ std::string ResourceManager<T>::completePath(std::string filename) {
std::list<std::string>::iterator iter = pathList_.begin();
while (iter != pathList_.end() && !foundFile) {
cplFileName = (!(*iter).empty() ? (*iter) + '/' : "") + filename;
LDEBUG("Completed file name to " << cplFileName);
//LDEBUG("Completed file name to " << cplFileName);
if (FileSys.exists(cplFileName))
foundFile = true;
iter++;
......
......@@ -276,7 +276,7 @@ ShaderObject::~ShaderObject() {
}
void ShaderObject::loadSourceFromFile(const string& filename) throw (Exception) {
LDEBUG("Loading " << filename);
//LDEBUG("Loading " << filename);
File* file = FileSys.open(filename);
// check if file is open
......@@ -1360,7 +1360,7 @@ Shader* ShaderManager::load(const std::string& vertFilename, const std::string&
}
Shader* ShaderManager::loadWithCustomGlslVersion(const std::string& vertFilename, const std::string& geomFilename, const std::string& fragFilename, const std::string& customHeader, const std::string& customGlslVersion) throw(Exception) {
LDEBUG("Loading files " << vertFilename << " and " << fragFilename);
//LDEBUG("Loading files " << vertFilename << " and " << fragFilename);
if (!GpuCaps.areShadersSupported()) {
LERROR("Shaders are not supported.");
throw Exception("Shaders are not supported.");
......
......@@ -266,7 +266,7 @@ namespace campvis {
return 0;
if (source->getDimensionality() != DIMENSIONALITY) {
LDEBUGC("campvis.modules.itk.core.GenericImageRepresentationItk<>::tryConvertFrom", "Dimensionality does not match");
LWARNINGC("campvis.modules.itk.core.GenericImageRepresentationItk<>::tryConvertFrom", "Dimensionality does not match");
return 0;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment