aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/main.cpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2016-07-27 11:07:38 +0200
committerRiccardo Spagni <ric@spagni.net>2016-07-27 11:07:38 +0200
commit0fbe9cfcdb9df2b141024eec04c3c7412791b741 (patch)
tree2859fc0f78de250dc93f7e758f810346b418d6ed /src/daemon/main.cpp
parentMerge pull request #936 (diff)
parentcmake,common: flag for stack trace (diff)
downloadmonero-0fbe9cfcdb9df2b141024eec04c3c7412791b741.tar.xz
Merge pull request #937
0f990d0 cmake,common: flag for stack trace (redfish)
Diffstat (limited to 'src/daemon/main.cpp')
-rw-r--r--src/daemon/main.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/daemon/main.cpp b/src/daemon/main.cpp
index 638fae20e..2e8953af9 100644
--- a/src/daemon/main.cpp
+++ b/src/daemon/main.cpp
@@ -31,7 +31,6 @@
#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"
@@ -44,6 +43,10 @@
#include "daemon/command_line_args.h"
#include "blockchain_db/db_types.h"
+#ifdef STACK_TRACE
+#include "common/stack_trace.h"
+#endif // STACK_TRACE
+
namespace po = boost::program_options;
namespace bf = boost::filesystem;
@@ -269,7 +272,9 @@ int main(int argc, char const * argv[])
, log_file_path.filename().string().c_str()
, log_file_path.parent_path().string().c_str()
);
+#ifdef STACK_TRACE
tools::set_stack_trace_log(log_file_path.filename().string());
+#endif // STACK_TRACE
}
if (command_line::has_arg(vm, daemon_args::arg_max_concurrency))