LogInit: use ConfigParam::GetPath()

This commit is contained in:
Max Kellermann 2016-11-02 10:07:50 +01:00
parent 6d409d27ca
commit 5a63d1d5a4

View File

@ -151,9 +151,8 @@ log_init(bool verbose, bool use_stdout, Error &error)
return true;
#endif
} else {
out_path = config_get_path(ConfigOption::LOG_FILE, error);
return !out_path.IsNull() &&
log_init_file(param->line, error);
out_path = param->GetPath();
return log_init_file(param->line, error);
}
}
#endif