aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/main.cpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2016-06-19 21:14:11 +0200
committerRiccardo Spagni <ric@spagni.net>2016-06-19 21:14:11 +0200
commite97d96ccfbb639f621cc4f4336c54cc02fa43485 (patch)
tree1344845a0ec97302fb9b9b723d4a18e6536570ec /src/daemon/main.cpp
parentMerge pull request #854 (diff)
parentPrint stack trace on exceptions (diff)
downloadmonero-e97d96ccfbb639f621cc4f4336c54cc02fa43485.tar.xz
Merge pull request #775
e409e59 Print stack trace on exceptions (moneromooo-monero) ef4ff42 connection_basic: avoid gratuitous exception (moneromooo-monero)
Diffstat (limited to 'src/daemon/main.cpp')
-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 bfd829dea..2e2f8936c 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"
@@ -259,6 +260,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());
}
if (command_line::has_arg(vm, daemon_args::arg_max_concurrency))