From 5aa865e56b18c3f0cf1d43da2298ccc05236e15c Mon Sep 17 00:00:00 2001 From: pauloue Date: Wed, 15 Aug 2018 05:36:40 -0400 Subject: [PATCH] Save debug.txt to build dir for RUN_IN_PLACE build (#7615) --- src/main.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index e033ef63a..2033518e3 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -532,11 +532,8 @@ static bool read_config_file(const Settings &cmd_args) static void init_log_streams(const Settings &cmd_args) { -#if RUN_IN_PLACE - std::string log_filename = DEBUGFILE; -#else std::string log_filename = porting::path_user + DIR_DELIM + DEBUGFILE; -#endif + if (cmd_args.exists("logfile")) log_filename = cmd_args.get("logfile"); -- 2.25.1