Save debug.txt to build dir for RUN_IN_PLACE build (#7615)
authorpauloue <oue.paul18@gmail.com>
Wed, 15 Aug 2018 09:36:40 +0000 (05:36 -0400)
committerSmallJoker <SmallJoker@users.noreply.github.com>
Wed, 15 Aug 2018 09:36:40 +0000 (11:36 +0200)
src/main.cpp

index e033ef63a578e456a4023d7c959a6f7f97fcd2b1..2033518e3b542471062687d1eacc69d38db9785d 100644 (file)
@@ -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");