summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlvklevankhanh <119659574+lvklevankhanh@users.noreply.github.com>2023-04-19 16:31:26 +0700
committerGitHub <noreply@github.com>2023-04-19 11:31:26 +0200
commit0c1c75e8678e9dc7e0b76a3db1898a28100fcaf2 (patch)
tree15eb8c9d439c4dc666ecfc599e903fca3abfcfa9 /src
parent5ca800c65fba4738dedf85058fef2eca3251fe18 (diff)
downloadDLT-daemon-0c1c75e8678e9dc7e0b76a3db1898a28100fcaf2.tar.gz
Re-Initialize internal logging in daemon mode only (#459)
* Re-Initialize internal logging in daemon mode only Re-Initialize internal logging is triggered twice during startup. This fixed might be a simplified initailization code for DLT. Signed-off-by: Le Van Khanh <Khanh.LeVan@vn.bosch.com> * Re-Initialize internal logging in daemon mode only Re-Initialize internal logging is triggered twice during startup. This fixed might be a simplified initailization code for DLT. Signed-off-by: Le Van Khanh <Khanh.LeVan@vn.bosch.com>
Diffstat (limited to 'src')
-rw-r--r--src/daemon/dlt-daemon.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/daemon/dlt-daemon.c b/src/daemon/dlt-daemon.c
index ee0f772..e56381b 100644
--- a/src/daemon/dlt-daemon.c
+++ b/src/daemon/dlt-daemon.c
@@ -1190,16 +1190,6 @@ int dlt_daemon_local_init_p1(DltDaemon *daemon, DltDaemonLocal *daemon_local, in
if (daemon_local->flags.dflag)
dlt_daemon_daemonize(daemon_local->flags.vflag);
- /* Re-Initialize internal logging facility after fork */
- dlt_log_set_filename(daemon_local->flags.loggingFilename);
- dlt_log_set_level(daemon_local->flags.loggingLevel);
- // 'free' dlt logging and corresponding file handle before re-initializing
- dlt_log_free();
- dlt_log_init_multiple_logfiles_support(daemon_local->flags.loggingMode,
- daemon_local->flags.enableLoggingFileLimit,
- daemon_local->flags.loggingFileSize,
- daemon_local->flags.loggingFileMaxSize);
-
/* initialise structure to use DLT file */
ret = dlt_file_init(&(daemon_local->file), daemon_local->flags.vflag);