diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2015-10-02 15:55:21 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2015-11-06 10:16:52 +0100 |
commit | 69564cc886f37cf3f97145d199bd0bbca8b16523 (patch) | |
tree | c0796eedf7cb60aac03c8cffa394882840b97b9f /platform | |
parent | bbf16b2b1dc3692298b3b33d5afaa72cab7e120d (diff) | |
download | qtlocation-mapboxgl-69564cc886f37cf3f97145d199bd0bbca8b16523.tar.gz |
[core] fix logging so we don't use strings as a formatter
Diffstat (limited to 'platform')
-rw-r--r-- | platform/default/image.cpp | 2 | ||||
-rw-r--r-- | platform/default/sqlite_cache.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/platform/default/image.cpp b/platform/default/image.cpp index d7dcfc38b5..1562a06b74 100644 --- a/platform/default/image.cpp +++ b/platform/default/image.cpp @@ -86,7 +86,7 @@ Image::Image(std::string const& data) } catch (ImageReaderException const& ex) { - Log::Error(Event::Image, ex.what()); + Log::Error(Event::Image, "%s", ex.what()); img.reset(); width = 0; height = 0; diff --git a/platform/default/sqlite_cache.cpp b/platform/default/sqlite_cache.cpp index 5dc1521680..aecbeb6a97 100644 --- a/platform/default/sqlite_cache.cpp +++ b/platform/default/sqlite_cache.cpp @@ -134,7 +134,7 @@ void SQLiteCache::Impl::get(const Resource &resource, Callback callback) { Log::Error(Event::Database, ex.code, ex.what()); callback(nullptr); } catch (std::runtime_error& ex) { - Log::Error(Event::Database, ex.what()); + Log::Error(Event::Database, "%s", ex.what()); callback(nullptr); } } @@ -204,7 +204,7 @@ void SQLiteCache::Impl::put(const Resource& resource, std::shared_ptr<const Resp } catch (mapbox::sqlite::Exception& ex) { Log::Error(Event::Database, ex.code, ex.what()); } catch (std::runtime_error& ex) { - Log::Error(Event::Database, ex.what()); + Log::Error(Event::Database, "%s", ex.what()); } } |