Don't log nonfatal exceptions. They're normally caught and logged as
appropriate; these logs are duplicate.
This commit is contained in:
@@ -64,16 +64,10 @@ void RageException::Throw(const char *fmt, ...)
|
|||||||
|
|
||||||
void RageException::ThrowNonfatal(const char *fmt, ...)
|
void RageException::ThrowNonfatal(const char *fmt, ...)
|
||||||
{
|
{
|
||||||
va_list va;
|
va_list va;
|
||||||
va_start(va, fmt);
|
va_start(va, fmt);
|
||||||
CString error = vssprintf( fmt, va );
|
CString error = vssprintf( fmt, va );
|
||||||
va_end(va);
|
va_end(va);
|
||||||
|
|
||||||
if(LOG)
|
|
||||||
{
|
|
||||||
LOG->Trace("Nonfatal exception thrown: %s", error.c_str());
|
|
||||||
LOG->Flush();
|
|
||||||
}
|
|
||||||
|
|
||||||
throw RageException( error );
|
throw RageException( error );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user