mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-26 09:24:47 +00:00
Make stack trace show up in log file with default settings
This commit is contained in:
parent
71ac698b78
commit
a854cec3ba
2 changed files with 3 additions and 3 deletions
|
@ -119,10 +119,10 @@ void mlog_set_log_level(int level)
|
|||
switch (level)
|
||||
{
|
||||
case 0:
|
||||
settings = "*:FATAL,net*:FATAL,global:INFO,verify:FATAL";
|
||||
settings = "*:FATAL,net*:FATAL,global:INFO,verify:FATAL,stacktrace:INFO";
|
||||
break;
|
||||
case 1:
|
||||
settings = "*:WARNING,global:INFO";
|
||||
settings = "*:WARNING,global:INFO,stacktrace:INFO";
|
||||
break;
|
||||
case 2:
|
||||
settings = "*:INFO";
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
#undef MONERO_DEFAULT_LOG_CATEGORY
|
||||
#define MONERO_DEFAULT_LOG_CATEGORY "stacktrace"
|
||||
|
||||
#define ST_LOG(x) CERROR(el::base::Writer,el::base::DispatchAction::FileOnlyLog,MONERO_DEFAULT_LOG_CATEGORY) << x
|
||||
#define ST_LOG(x) CINFO(el::base::Writer,el::base::DispatchAction::FileOnlyLog,MONERO_DEFAULT_LOG_CATEGORY) << x
|
||||
|
||||
// from http://stackoverflow.com/questions/11665829/how-can-i-print-stack-trace-for-caught-exceptions-in-c-code-injection-in-c
|
||||
|
||||
|
|
Loading…
Reference in a new issue