diff options
author | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2015-03-09 16:15:18 +0200 |
---|---|---|
committer | Thiago Marcos P. Santos <thiago@mapbox.com> | 2015-03-12 13:28:41 +0200 |
commit | 51bc265db341f1d98b4fd46be80241771f854eb5 (patch) | |
tree | dc77abcdc9b423b59da94d32ae2afb0f57fb6f8d /bin | |
parent | 2948e7d121343359b817d2fb0eb383e257ab84c8 (diff) | |
download | qtlocation-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 'bin')
-rw-r--r-- | bin/render.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/bin/render.cpp b/bin/render.cpp index 71981b9d96..01f6929092 100644 --- a/bin/render.cpp +++ b/bin/render.cpp @@ -5,15 +5,10 @@ #include <mbgl/platform/default/headless_view.hpp> #include <mbgl/platform/default/headless_display.hpp> +#include <mbgl/platform/log.hpp> #include <mbgl/storage/default_file_source.hpp> #include <mbgl/storage/default/sqlite_cache.hpp> -#if __APPLE__ -#include <mbgl/platform/darwin/log_nslog.hpp> -#else -#include <mbgl/platform/default/log_stderr.hpp> -#endif - #pragma GCC diagnostic push #ifndef __clang__ #pragma GCC diagnostic ignored "-Wunused-local-typedefs" @@ -71,13 +66,6 @@ int main(int argc, char *argv[]) { using namespace mbgl; - -#if __APPLE__ - Log::Set<NSLogBackend>(); -#else - Log::Set<StderrLogBackend>(); -#endif - mbgl::SQLiteCache cache(cache_file); mbgl::DefaultFileSource fileSource(&cache); |