summaryrefslogtreecommitdiff
path: root/src/components/config_profile
diff options
context:
space:
mode:
authorKramchaninov Pavel <pkramchaninov@luxoft.com>2015-04-10 15:55:02 +0300
committerKramchaninov Pavel <pkramchaninov@luxoft.com>2015-04-10 15:55:02 +0300
commit753e81404434d1fa398af85da2e4c33349b8ba1c (patch)
tree4ea76d2c0fb6673ff86463746df7081a0089e743 /src/components/config_profile
parenta0262da23b454cb271348870c1f77ba15ad380a9 (diff)
parentf58179cd5d06d29e7d1ea5efc716004eb484c234 (diff)
downloadsdl_core-753e81404434d1fa398af85da2e4c33349b8ba1c.tar.gz
Merge pull request #67 from LuxoftSDL/APPLINK-11966_1
[RTC 571626] PutFile() fails when the size reaches 250MB approx
Diffstat (limited to 'src/components/config_profile')
-rw-r--r--src/components/config_profile/include/config_profile/profile.h3
-rw-r--r--src/components/config_profile/src/profile.cc13
2 files changed, 15 insertions, 1 deletions
diff --git a/src/components/config_profile/include/config_profile/profile.h b/src/components/config_profile/include/config_profile/profile.h
index 8e5c3ffe8a..071d2fdeca 100644
--- a/src/components/config_profile/include/config_profile/profile.h
+++ b/src/components/config_profile/include/config_profile/profile.h
@@ -491,6 +491,8 @@ class Profile : public utils::Singleton<Profile> {
uint32_t hash_string_size() const;
+ bool logs_enabled() const;
+
/*
* @brief Updates all related values from ini file
*/
@@ -692,6 +694,7 @@ private:
uint32_t resumption_delay_before_ign_;
uint32_t resumption_delay_after_ign_;
uint32_t hash_string_size_;
+ bool logs_enabled_;
FRIEND_BASE_SINGLETON_CLASS(Profile);
DISALLOW_COPY_AND_ASSIGN(Profile);
diff --git a/src/components/config_profile/src/profile.cc b/src/components/config_profile/src/profile.cc
index 3454580be4..760c8ee5a9 100644
--- a/src/components/config_profile/src/profile.cc
+++ b/src/components/config_profile/src/profile.cc
@@ -82,6 +82,7 @@ const char* kServerAddressKey = "ServerAddress";
const char* kAppInfoStorageKey = "AppInfoStorage";
const char* kAppStorageFolderKey = "AppStorageFolder";
const char* kAppResourseFolderKey = "AppResourceFolder";
+const char* kLogsEnabledKey = "LogsEnabled";
const char* kAppConfigFolderKey = "AppConfigFolder";
const char* kEnableProtocol4Key = "EnableProtocol4";
const char* kAppIconsFolderKey = "AppIconsFolder";
@@ -292,7 +293,8 @@ Profile::Profile()
tts_global_properties_timeout_(kDefaultTTSGlobalPropertiesTimeout),
attempts_to_open_policy_db_(kDefaultAttemptsToOpenPolicyDB),
open_attempt_timeout_ms_(kDefaultAttemptsToOpenPolicyDB),
- hash_string_size_(kDefaultHashStringSize) {
+ hash_string_size_(kDefaultHashStringSize),
+ logs_enabled_(false) {
}
Profile::~Profile() {
@@ -657,6 +659,10 @@ uint16_t Profile::tts_global_properties_timeout() const {
return tts_global_properties_timeout_;
}
+bool Profile::logs_enabled() const {
+ return logs_enabled_;
+}
+
void Profile::UpdateValues() {
LOG4CXX_AUTO_TRACE(logger_);
@@ -671,6 +677,11 @@ void Profile::UpdateValues() {
LOG_UPDATED_BOOL_VALUE(launch_hmi_, kLaunchHMIKey, kHmiSection);
+ // Logs enabled
+ ReadBoolValue(&logs_enabled_, false, kMainSection, kLogsEnabledKey);
+
+ LOG_UPDATED_BOOL_VALUE(logs_enabled_, kLogsEnabledKey, kMainSection);
+
// Application config folder
ReadStringValue(&app_config_folder_,
file_system::CurrentWorkingDirectory().c_str(),