Переглянути джерело

Remove assertion when too long message attempted

Since these can be caused by malformed input files assert is the wrong thing.
Turo Lamminen 10 роки тому
батько
коміт
9f9774403d
1 змінених файлів з 0 додано та 4 видалено
  1. 0 4
      code/DefaultLogger.cpp

+ 0 - 4
code/DefaultLogger.cpp

@@ -165,7 +165,6 @@ void Logger::debug(const char* message)	{
 	// sometimes importers will include data from the input file
 	// (i.e. node names) in their messages.
 	if (strlen(message)>MAX_LOG_MESSAGE_LENGTH) {
-		ai_assert(false);
 		return;
 	}
 	return OnDebug(message);
@@ -176,7 +175,6 @@ void Logger::info(const char* message)	{
 	
 	// SECURITY FIX: see above
 	if (strlen(message)>MAX_LOG_MESSAGE_LENGTH) {
-		ai_assert(false);
 		return;
 	}
 	return OnInfo(message);
@@ -187,7 +185,6 @@ void Logger::warn(const char* message)	{
 	
 	// SECURITY FIX: see above
 	if (strlen(message)>MAX_LOG_MESSAGE_LENGTH) {
-		ai_assert(false);
 		return;
 	}
 	return OnWarn(message);
@@ -198,7 +195,6 @@ void Logger::error(const char* message)	{
 	
 	// SECURITY FIX: see above
 	if (strlen(message)>MAX_LOG_MESSAGE_LENGTH) {
-		ai_assert(false);
 		return;
 	}
 	return OnError(message);