mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-27 01:42:27 +00:00
daemon: avoid pre-log-init spew on creating directories
This commit is contained in:
parent
cf2b151116
commit
2b188151d4
1 changed files with 3 additions and 1 deletions
|
@ -168,7 +168,6 @@ int main(int argc, char const * argv[])
|
||||||
// Create data dir if it doesn't exist
|
// Create data dir if it doesn't exist
|
||||||
boost::filesystem::path data_dir = boost::filesystem::absolute(
|
boost::filesystem::path data_dir = boost::filesystem::absolute(
|
||||||
command_line::get_arg(vm, data_dir_arg));
|
command_line::get_arg(vm, data_dir_arg));
|
||||||
tools::create_directories_if_necessary(data_dir.string());
|
|
||||||
|
|
||||||
// FIXME: not sure on windows implementation default, needs further review
|
// FIXME: not sure on windows implementation default, needs further review
|
||||||
//bf::path relative_path_base = daemonizer::get_relative_path_base(vm);
|
//bf::path relative_path_base = daemonizer::get_relative_path_base(vm);
|
||||||
|
@ -216,6 +215,9 @@ int main(int argc, char const * argv[])
|
||||||
mlog_set_log(command_line::get_arg(vm, daemon_args::arg_log_level).c_str());
|
mlog_set_log(command_line::get_arg(vm, daemon_args::arg_log_level).c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// after logs initialized
|
||||||
|
tools::create_directories_if_necessary(data_dir.string());
|
||||||
|
|
||||||
// If there are positional options, we're running a daemon command
|
// If there are positional options, we're running a daemon command
|
||||||
{
|
{
|
||||||
auto command = command_line::get_arg(vm, daemon_args::arg_command);
|
auto command = command_line::get_arg(vm, daemon_args::arg_command);
|
||||||
|
|
Loading…
Reference in a new issue