diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2018-06-07 14:49:41 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2018-06-12 17:41:16 +0200 |
commit | 2b2de05612eaf4dbacdf5112996045bd8efeb800 (patch) | |
tree | e035823061fdcd4e666b3223be70ad2c5865a044 /include | |
parent | bed86b98f11088cd2ed6354696e9aa8e762f95be (diff) | |
download | qtlocation-mapboxgl-2b2de05612eaf4dbacdf5112996045bd8efeb800.tar.gz |
[core] allow logging error codes and formatting strings at the same time
Diffstat (limited to 'include')
-rw-r--r-- | include/mbgl/util/logging.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/mbgl/util/logging.hpp b/include/mbgl/util/logging.hpp index d072673e76..03db2d7462 100644 --- a/include/mbgl/util/logging.hpp +++ b/include/mbgl/util/logging.hpp @@ -67,8 +67,8 @@ public: private: static void record(EventSeverity severity, Event event, const std::string &msg); - static void record(EventSeverity severity, Event event, const char* format, ...); - static void record(EventSeverity severity, Event event, int64_t code); + static void record(EventSeverity severity, Event event, const char* format = "", ...); + static void record(EventSeverity severity, Event event, int64_t code, const char* format = "", ...); static void record(EventSeverity severity, Event event, int64_t code, const std::string &msg); // This method is the data sink that must be implemented by each platform we |