summaryrefslogtreecommitdiff
path: root/src/daemon/dlt-daemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/dlt-daemon.c')
-rw-r--r--src/daemon/dlt-daemon.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/daemon/dlt-daemon.c b/src/daemon/dlt-daemon.c
index b53e5d1..970ad80 100644
--- a/src/daemon/dlt-daemon.c
+++ b/src/daemon/dlt-daemon.c
@@ -813,6 +813,11 @@ int main(int argc, char *argv[])
/* --- Daemon connection init end */
+ if (dlt_daemon_load_runtime_configuration(&daemon, daemon_local.flags.ivalue, daemon_local.flags.vflag) == -1) {
+ dlt_log(LOG_ERR, "Could not load runtime config\n");
+ return -1;
+ }
+
/* --- Daemon init phase 2 begin --- */
if (dlt_daemon_local_init_p2(&daemon, &daemon_local, daemon_local.flags.vflag) == -1) {
dlt_log(LOG_CRIT, "Initialization of phase 2 failed!\n");
@@ -884,11 +889,6 @@ int main(int argc, char *argv[])
daemon_local.flags.gatewayMode,
daemon_local.flags.vflag);
- if (dlt_daemon_load_runtime_configuration(&daemon, daemon_local.flags.ivalue, daemon_local.flags.vflag) == -1) {
- dlt_log(LOG_ERR, "Could not load runtime config\n");
- return -1;
- }
-
dlt_daemon_log_internal(&daemon,
&daemon_local,
"Daemon launched. Starting to output traces...",