diff options
author | lvklevankhanh <119659574+lvklevankhanh@users.noreply.github.com> | 2023-04-19 16:31:26 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-19 11:31:26 +0200 |
commit | 0c1c75e8678e9dc7e0b76a3db1898a28100fcaf2 (patch) | |
tree | 15eb8c9d439c4dc666ecfc599e903fca3abfcfa9 | |
parent | 5ca800c65fba4738dedf85058fef2eca3251fe18 (diff) | |
download | DLT-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>
-rw-r--r-- | src/daemon/dlt-daemon.c | 10 |
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); |