Save debug.txt to build dir for RUN_IN_PLACE build (#7615)

This commit is contained in:
pauloue 2018-08-15 05:36:40 -04:00 committed by SmallJoker
parent 03f89e8ffc
commit 5aa865e56b

@ -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");