diff options
author | Ravi Sankar P <ponnurangamravi.sankar@in.bosch.com> | 2018-05-16 14:29:46 +0530 |
---|---|---|
committer | Manikandan C <mchockalingam@de.adit-jv.com> | 2018-12-11 09:32:39 +0100 |
commit | 4e0ccf2907be345130e5e6dc384f587b08b008fc (patch) | |
tree | f3618d1ff5a639148a6865fb84f05ae1c48b00f8 /src/daemon/dlt-daemon.c | |
parent | 061005d2b6ec8859aa7c9838d1dd1d573f4037ff (diff) | |
download | DLT-daemon-4e0ccf2907be345130e5e6dc384f587b08b008fc.tar.gz |
Removed log level change callback notification while context register done with ll_ts API
Signed-off-by: Ravi Sankar P <ponnurangamravi.sankar@in.bosch.com>
Diffstat (limited to 'src/daemon/dlt-daemon.c')
-rw-r--r-- | src/daemon/dlt-daemon.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/daemon/dlt-daemon.c b/src/daemon/dlt-daemon.c index db932d0..774573e 100644 --- a/src/daemon/dlt-daemon.c +++ b/src/daemon/dlt-daemon.c @@ -2612,13 +2612,17 @@ int dlt_daemon_process_user_message_register_context(DltDaemon *daemon, if (context->user_handle >= DLT_FD_MINIMUM) { - /* This call also replaces the default values with the values defined for default */ - if (dlt_daemon_user_send_log_level(daemon, context, verbose)==-1) + if ((userctxt.log_level == DLT_LOG_DEFAULT) || (userctxt.trace_status == DLT_TRACE_STATUS_DEFAULT)) { - dlt_vlog(LOG_WARNING, "Can't send current log level as response to %s for (%.4s;%.4s)\n", - __func__, - context->apid, - context->ctid); + /* This call also replaces the default values with the values defined for default */ + if (dlt_daemon_user_send_log_level(daemon, context, verbose)==-1) + { + dlt_vlog(LOG_WARNING, "Can't send current log level as response to %s for (%.4s;%.4s)\n", + __func__, + context->apid, + context->ctid); + return -1; + } } } |