Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Yershov <yershov@corp.mail.ru>2016-01-27 18:43:18 +0300
committerSergey Yershov <yershov@corp.mail.ru>2016-03-23 16:15:59 +0300
commitb0eb89da25601a17036235110145096ed8b19ad5 (patch)
tree08112f90e846b68b68e68fc003a5c50b21fa125e /platform
parente77adb18e84eeee21734418a6d77302b3c7cdc8f (diff)
Fix logging output in Settings
Diffstat (limited to 'platform')
-rw-r--r--platform/settings.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/platform/settings.cpp b/platform/settings.cpp
index b86a306527..86da785031 100644
--- a/platform/settings.cpp
+++ b/platform/settings.cpp
@@ -30,7 +30,9 @@ namespace Settings
try
{
- ReaderStreamBuf buffer(new FileReader(GetPlatform().SettingsPathForFile(SETTINGS_FILE_NAME)));
+ string settingsPath = GetPlatform().SettingsPathForFile(SETTINGS_FILE_NAME);
+ LOG(LINFO, ("Settings path:", settingsPath));
+ ReaderStreamBuf buffer(new FileReader(settingsPath));
istream stream(&buffer);
string line;
@@ -52,7 +54,7 @@ namespace Settings
}
catch (RootException const & ex)
{
- LOG(LWARNING, (ex.Msg()));
+ LOG(LWARNING, ("Loading settings:", ex.Msg()));
}
}
@@ -73,7 +75,7 @@ namespace Settings
catch (RootException const & ex)
{
// Ignore all settings saving exceptions.
- LOG(LWARNING, (ex.Msg()));
+ LOG(LWARNING, ("Saving settings:", ex.Msg()));
}
}