diff options
author | Riccardo Spagni <ric@spagni.net> | 2017-02-24 21:10:25 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2017-02-24 21:10:25 +0200 |
commit | 44484acf2d316486822eebe7f5993ba246871390 (patch) | |
tree | c0a7a1bd4cc9dd9db84b601142e28343cfe03f2b /src/daemon | |
parent | Merge pull request #1797 (diff) | |
parent | daemon: avoid pre-log-init spew on creating directories (diff) | |
download | monero-44484acf2d316486822eebe7f5993ba246871390.tar.xz |
Merge pull request #1799
2b188151 daemon: avoid pre-log-init spew on creating directories (moneromooo-monero)
cf2b1511 wallet: avoid pre-log-init spew on --version (moneromooo-monero)
Diffstat (limited to 'src/daemon')
-rw-r--r-- | src/daemon/main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/daemon/main.cpp b/src/daemon/main.cpp index 8afdb08d8..19dd02171 100644 --- a/src/daemon/main.cpp +++ b/src/daemon/main.cpp @@ -168,7 +168,6 @@ int main(int argc, char const * argv[]) // Create data dir if it doesn't exist boost::filesystem::path data_dir = boost::filesystem::absolute( 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 //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()); } + // after logs initialized + tools::create_directories_if_necessary(data_dir.string()); + // If there are positional options, we're running a daemon command { auto command = command_line::get_arg(vm, daemon_args::arg_command); |