diff options
author | Bui Nguyen Quoc Thanh <thanh.buinguyenquoc@vn.bosch.com> | 2020-05-18 14:52:05 +0700 |
---|---|---|
committer | Saya Sugiura <39760799+ssugiura@users.noreply.github.com> | 2020-07-06 10:04:07 +0900 |
commit | acbbc6b23d6694ee940ad384bf882a4c4ab47af7 (patch) | |
tree | d3736b1a99c0a54843eb170d833d92d70eac5be8 /src/offlinelogstorage/dlt_offline_logstorage_behavior.h | |
parent | 54768d5f559aa9b35ab61c20f4f56e1e9409f17a (diff) | |
download | DLT-daemon-acbbc6b23d6694ee940ad384bf882a4c4ab47af7.tar.gz |
offline storage: Improvement log messages at bottom
- In case there are several filters in config dlt_logstorage.conf
which are sharing the same file name, the dlt-daemon could not handle
to write the dlt messages at the proper file. It means the latest dlt
messages might be not written into the newest file.
- In order to resolve this, dlt-daemon must keep the newest file for
each filename. Everytime new dlt message is going to be written,
dlt-daemon must ensure that it must be written out to the newest file.
Signed-off-by: Bui Nguyen Quoc Thanh <thanh.buinguyenquoc@vn.bosch.com>
Signed-off-by: KHANH LUONG HONG DUY <khanh.luonghongduy@vn.bosch.com>
Diffstat (limited to 'src/offlinelogstorage/dlt_offline_logstorage_behavior.h')
-rw-r--r-- | src/offlinelogstorage/dlt_offline_logstorage_behavior.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/offlinelogstorage/dlt_offline_logstorage_behavior.h b/src/offlinelogstorage/dlt_offline_logstorage_behavior.h index 34305d0..cb94aa7 100644 --- a/src/offlinelogstorage/dlt_offline_logstorage_behavior.h +++ b/src/offlinelogstorage/dlt_offline_logstorage_behavior.h @@ -54,7 +54,8 @@ int dlt_logstorage_prepare_on_msg(DltLogStorageFilterConfig *config, DltLogStorageUserConfig *file_config, char *dev_path, - int log_msg_size); + int log_msg_size, + char *newest_file); int dlt_logstorage_write_on_msg(DltLogStorageFilterConfig *config, DltLogStorageUserConfig *file_config, char *dev_path, @@ -76,7 +77,8 @@ int dlt_logstorage_sync_on_msg(DltLogStorageFilterConfig *config, int dlt_logstorage_prepare_msg_cache(DltLogStorageFilterConfig *config, DltLogStorageUserConfig *file_config, char *dev_path, - int log_msg_size); + int log_msg_size, + char *newest_file); int dlt_logstorage_write_msg_cache(DltLogStorageFilterConfig *config, DltLogStorageUserConfig *file_config, |