Eliminated spammy log messages from backtrace functions
This commit is contained in:
parent
162227ce78
commit
b69156d79c
@ -260,10 +260,7 @@ USHORT RtlCaptureStackBackTrace(ULONG FramesToSkip, ULONG FramesToCapture, PVOID
|
||||
void winpr_backtrace_free(void* buffer)
|
||||
{
|
||||
if (!buffer)
|
||||
{
|
||||
LOGF(support_msg);
|
||||
return;
|
||||
}
|
||||
|
||||
#if defined(HAVE_EXECINFO_H)
|
||||
t_execinfo* data = (t_execinfo*)buffer;
|
||||
@ -517,8 +514,7 @@ void winpr_log_backtrace_ex(wLog* log, DWORD level, DWORD size)
|
||||
if (!stack)
|
||||
{
|
||||
WLog_Print(log, WLOG_ERROR, "winpr_backtrace failed!\n");
|
||||
winpr_backtrace_free(stack);
|
||||
return;
|
||||
goto fail;
|
||||
}
|
||||
|
||||
msg = winpr_backtrace_symbols(stack, &used);
|
||||
@ -530,6 +526,7 @@ void winpr_log_backtrace_ex(wLog* log, DWORD level, DWORD size)
|
||||
}
|
||||
free(msg);
|
||||
|
||||
fail:
|
||||
winpr_backtrace_free(stack);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user