mirror of
https://github.com/open-goal/jak-project
synced 2026-08-19 22:12:24 -04:00
log: ensure the log/ directory exists (#2904)
This commit is contained in:
@@ -128,6 +128,7 @@ void set_file(const std::string& filename,
|
||||
} else {
|
||||
file_path = file_util::get_file_path({"log", filename});
|
||||
}
|
||||
file_util::create_dir_if_needed_for_file(file_path);
|
||||
std::string complete_filename = file_path;
|
||||
if (should_rotate) {
|
||||
complete_filename += "." + str_util::current_local_timestamp_no_colons() + ".log";
|
||||
|
||||
Reference in New Issue
Block a user