Don't log nonfatal exceptions. They're normally caught and logged as

appropriate; these logs are duplicate.
This commit is contained in:
Glenn Maynard
2004-01-12 10:45:42 +00:00
parent 3a812c2a93
commit 57647fcfa6
+4 -10
View File
@@ -64,16 +64,10 @@ void RageException::Throw(const char *fmt, ...)
void RageException::ThrowNonfatal(const char *fmt, ...)
{
va_list va;
va_start(va, fmt);
CString error = vssprintf( fmt, va );
va_end(va);
va_list va;
va_start(va, fmt);
CString error = vssprintf( fmt, va );
va_end(va);
if(LOG)
{
LOG->Trace("Nonfatal exception thrown: %s", error.c_str());
LOG->Flush();
}
throw RageException( error );
}