diff options
author | Ravi Sankar P <ponnurangamravi.sankar@in.bosch.com> | 2018-05-16 14:29:46 +0530 |
---|---|---|
committer | Christoph Lipka <clipka@users.noreply.github.com> | 2018-12-21 10:16:46 +0100 |
commit | bc282ba2f4173278e81ff411647dd27a1be074a4 (patch) | |
tree | 284a195a3a14cf96bf6423ac7876c980bdb8ce20 /src/daemon | |
parent | aff2511aa2a34fe91c02753f2d6f7b0044c82d80 (diff) | |
download | DLT-daemon-bc282ba2f4173278e81ff411647dd27a1be074a4.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')
-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; + } } } |