summaryrefslogtreecommitdiff
path: root/src/offlinelogstorage/dlt_offline_logstorage_behavior_internal.h
diff options
context:
space:
mode:
authorBui Nguyen Quoc Thanh <thanh.buinguyenquoc@vn.bosch.com>2020-05-18 14:52:05 +0700
committerSaya Sugiura <39760799+ssugiura@users.noreply.github.com>2020-07-06 10:04:07 +0900
commitacbbc6b23d6694ee940ad384bf882a4c4ab47af7 (patch)
treed3736b1a99c0a54843eb170d833d92d70eac5be8 /src/offlinelogstorage/dlt_offline_logstorage_behavior_internal.h
parent54768d5f559aa9b35ab61c20f4f56e1e9409f17a (diff)
downloadDLT-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_internal.h')
-rw-r--r--src/offlinelogstorage/dlt_offline_logstorage_behavior_internal.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/offlinelogstorage/dlt_offline_logstorage_behavior_internal.h b/src/offlinelogstorage/dlt_offline_logstorage_behavior_internal.h
index f386ea7..c059fbd 100644
--- a/src/offlinelogstorage/dlt_offline_logstorage_behavior_internal.h
+++ b/src/offlinelogstorage/dlt_offline_logstorage_behavior_internal.h
@@ -68,7 +68,8 @@ int dlt_logstorage_storage_dir_info(DltLogStorageUserConfig *file_config,
int dlt_logstorage_open_log_file(DltLogStorageFilterConfig *config,
DltLogStorageUserConfig *file_config,
char *dev_path,
- int msg_size);
+ int msg_size,
+ bool is_update_required);
DLT_STATIC int dlt_logstorage_sync_to_file(DltLogStorageFilterConfig *config,
DltLogStorageUserConfig *file_config,