From 9f9774403d9800cf1640ba050a786aef578438dd Mon Sep 17 00:00:00 2001 From: Turo Lamminen Date: Wed, 1 Apr 2015 16:03:06 +0300 Subject: [PATCH] Remove assertion when too long message attempted Since these can be caused by malformed input files assert is the wrong thing. --- code/DefaultLogger.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/code/DefaultLogger.cpp b/code/DefaultLogger.cpp index 1b9167c55..1e5b8b9c5 100644 --- a/code/DefaultLogger.cpp +++ b/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);