aboutsummaryrefslogtreecommitdiff
path: root/src/daemon
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-11-30 17:55:16 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-11-30 17:55:16 +0000
commit9b69a0ae019b366ad9511263680d6d08f50d6f25 (patch)
tree658d68dfc2c2d72f9695c658df8cc2a0e3dba51c /src/daemon
parentmlocker: remove early page size log (diff)
downloadmonero-9b69a0ae019b366ad9511263680d6d08f50d6f25.tar.xz
daemon: print monero version at startup when calling a detached daemon
So people who want a timstamp get a timestamp
Diffstat (limited to 'src/daemon')
-rw-r--r--src/daemon/main.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/daemon/main.cpp b/src/daemon/main.cpp
index f483ba6c9..35017d9ef 100644
--- a/src/daemon/main.cpp
+++ b/src/daemon/main.cpp
@@ -216,6 +216,16 @@ int main(int argc, char const * argv[])
// after logs initialized
tools::create_directories_if_necessary(data_dir.string());
+#ifdef STACK_TRACE
+ tools::set_stack_trace_log(log_file_path.filename().string());
+#endif // STACK_TRACE
+
+ if (!command_line::is_arg_defaulted(vm, daemon_args::arg_max_concurrency))
+ tools::set_max_concurrency(command_line::get_arg(vm, daemon_args::arg_max_concurrency));
+
+ // logging is now set up
+ MGINFO("Monero '" << MONERO_RELEASE_NAME << "' (v" << MONERO_VERSION_FULL << ")");
+
// If there are positional options, we're running a daemon command
{
auto command = command_line::get_arg(vm, daemon_args::arg_command);
@@ -276,16 +286,6 @@ int main(int argc, char const * argv[])
}
}
-#ifdef STACK_TRACE
- tools::set_stack_trace_log(log_file_path.filename().string());
-#endif // STACK_TRACE
-
- if (!command_line::is_arg_defaulted(vm, daemon_args::arg_max_concurrency))
- tools::set_max_concurrency(command_line::get_arg(vm, daemon_args::arg_max_concurrency));
-
- // logging is now set up
- MGINFO("Monero '" << MONERO_RELEASE_NAME << "' (v" << MONERO_VERSION_FULL << ")");
-
MINFO("Moving from main() into the daemonize now.");
return daemonizer::daemonize(argc, argv, daemonize::t_executor{}, vm) ? 0 : 1;