Skip to content

Commit

Permalink
Minor changes to file log
Browse files Browse the repository at this point in the history
  • Loading branch information
dkargin committed Oct 29, 2024
1 parent 177da21 commit e7ede4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/transport/file_log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ void init(const M_string& remappings)
// Not cross-platform?
if( get_environment_variable(ros_log_env, "HOME") )
{
std::string dotros = ros_log_env + std::string("/.ros/");
fs::path dotros = fs::path(ros_log_env) / std::string(".ros");
fs::create_directory(dotros);
log_file_name = dotros + "log/";
fs::path log_file_name = dotros / std::string("log");
fs::create_directory(log_file_name);
}
}
Expand Down

0 comments on commit e7ede4b

Please sign in to comment.