summaryrefslogtreecommitdiff
path: root/macosx
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2015-03-09 16:15:18 +0200
committerThiago Marcos P. Santos <thiago@mapbox.com>2015-03-12 13:28:41 +0200
commit51bc265db341f1d98b4fd46be80241771f854eb5 (patch)
treedc77abcdc9b423b59da94d32ae2afb0f57fb6f8d /macosx
parent2948e7d121343359b817d2fb0eb383e257ab84c8 (diff)
downloadqtlocation-mapboxgl-51bc265db341f1d98b4fd46be80241771f854eb5.tar.gz
Make the logging system static
No initialization is needed anymore and we can use the logging functions safely at any point of the code (threading is not handled though, so you might get multiplexed messages if you log from two threads simultaneously).
Diffstat (limited to 'macosx')
-rw-r--r--macosx/main.mm4
1 files changed, 1 insertions, 3 deletions
diff --git a/macosx/main.mm b/macosx/main.mm
index f59fbda6a8..087544f7c4 100644
--- a/macosx/main.mm
+++ b/macosx/main.mm
@@ -1,6 +1,6 @@
+#include <mbgl/platform/log.hpp>
#include <mbgl/platform/platform.hpp>
#include <mbgl/platform/darwin/settings_nsuserdefaults.hpp>
-#include <mbgl/platform/darwin/log_nslog.hpp>
#include <mbgl/platform/darwin/Reachability.h>
#include <mbgl/platform/default/glfw_view.hpp>
#include <mbgl/storage/default_file_source.hpp>
@@ -101,8 +101,6 @@ const std::string &defaultCacheDatabase() {
}
int main() {
- mbgl::Log::Set<mbgl::NSLogBackend>();
-
GLFWView view;
mbgl::SQLiteCache cache(defaultCacheDatabase());