aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/main.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-03-28 19:00:18 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-04-28 23:34:51 +0100
commite409e59d29cd8f8480947d80582ac8e93b495e22 (patch)
tree8c0dbed81ff56d17e3704e400c463a379aebbec9 /src/daemon/main.cpp
parentconnection_basic: avoid gratuitous exception (diff)
downloadmonero-e409e59d29cd8f8480947d80582ac8e93b495e22.tar.xz
Print stack trace on exceptions
if libunwind is found. Useful for debugging logs.
Diffstat (limited to '')
-rw-r--r--src/daemon/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/daemon/main.cpp b/src/daemon/main.cpp
index 0717fd89b..8684b5d09 100644
--- a/src/daemon/main.cpp
+++ b/src/daemon/main.cpp
@@ -31,6 +31,7 @@
#include "common/command_line.h"
#include "common/scoped_message_writer.h"
#include "common/util.h"
+#include "common/stack_trace.h"
#include "cryptonote_core/cryptonote_core.h"
#include "cryptonote_core/miner.h"
#include "daemon/command_server.h"
@@ -258,6 +259,7 @@ int main(int argc, char const * argv[])
, log_file_path.filename().string().c_str()
, log_file_path.parent_path().string().c_str()
);
+ tools::set_stack_trace_log(log_file_path.filename().string());
}
_note_c("dbg/main", "Moving from main() into the daemonize now.");