mirror of
https://github.com/open-goal/jak-project
synced 2026-07-10 07:07:04 -04:00
util/file: cleanup log initialization and some file-util functions (#2299)
Fixes both issues mentioned in #2297
This commit is contained in:
@@ -290,8 +290,12 @@ int main(int argc, char** argv) {
|
||||
}
|
||||
}
|
||||
|
||||
auto log_path = file_util::get_jak_project_dir() / "extractor.log";
|
||||
lg::set_file(log_path.string());
|
||||
try {
|
||||
lg::set_file(file_util::get_file_path({"log", "extractor.log"}));
|
||||
} catch (const std::exception& e) {
|
||||
lg::error("Failed to setup logging: {}", e.what());
|
||||
return 1;
|
||||
}
|
||||
|
||||
fs::path iso_data_path;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user