mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 04:50:34 +05:00
Only collect backtrace if NG_BACKTRACE is set
This commit is contained in:
parent
eb6f0efc2f
commit
8940bf7c2c
@ -144,6 +144,8 @@ namespace ngcore
|
||||
|
||||
std::string GetBackTrace()
|
||||
{
|
||||
if(!getenv("NG_BACKTRACE"))
|
||||
return "";
|
||||
std::cerr << "Collecting backtrace..." << std::endl;
|
||||
std::stringstream result;
|
||||
void *bt[100];
|
||||
|
Loading…
Reference in New Issue
Block a user