diff options
author | Bui Nguyen Quoc Thanh <thanh.buinguyenquoc@vn.bosch.com> | 2020-08-27 13:20:17 +0700 |
---|---|---|
committer | Saya Sugiura <39760799+ssugiura@users.noreply.github.com> | 2021-01-06 09:27:28 +0900 |
commit | 2fa8b0d10a401aadab068015c0c08dd4d39e6c98 (patch) | |
tree | f6c3bd57a525cea450d49bd92ff3c25807e01acb /src/daemon/dlt_daemon_offline_logstorage.h | |
parent | f79087dc4f45a54fda53ffafa350c18beeca9dbf (diff) | |
download | DLT-daemon-2fa8b0d10a401aadab068015c0c08dd4d39e6c98.tar.gz |
dlt-daemon: log levels are not controlled
The issue happens in case:
dlt_logstorage.conf is set available at startup via dlt.conf
and both LogAppName and ContextName are wildcard.
In such a case, when logstorage disconnection happens,
dlt-daemon is missing a check for case in which both are
wildcard.
It causes the reset loglevel is not happening.
Then the control message to change loglevel will be
handled incorrectly.
Signed-off-by: Bui Nguyen Quoc Thanh <thanh.buinguyenquoc@vn.bosch.com>
Diffstat (limited to 'src/daemon/dlt_daemon_offline_logstorage.h')
-rw-r--r-- | src/daemon/dlt_daemon_offline_logstorage.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/daemon/dlt_daemon_offline_logstorage.h b/src/daemon/dlt_daemon_offline_logstorage.h index 605ada4..956b09d 100644 --- a/src/daemon/dlt_daemon_offline_logstorage.h +++ b/src/daemon/dlt_daemon_offline_logstorage.h @@ -58,8 +58,13 @@ #define DLT_DAEMON_LOGSTORAGE_RESET_LOGLEVEL -1 #define DLT_DAEMON_LOGSTORAGE_RESET_SEND_LOGLEVEL 0 -#define DLT_DAEMON_LOGSTORAGE_CMP_APID 1 -#define DLT_DAEMON_LOGSTORAGE_CMP_CTID 2 +typedef enum { + DLT_DAEMON_LOGSTORAGE_CMP_MIN = 0, + DLT_DAEMON_LOGSTORAGE_CMP_APID = 1, + DLT_DAEMON_LOGSTORAGE_CMP_CTID = 2, + DLT_DAEMON_LOGSTORAGE_CMP_ECID = 3, + DLT_DAEMON_LOGSTORAGE_CMP_MAX, +} DltCompareFlags; /** * dlt_daemon_logstorage_get_loglevel |