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 /linux | |
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 'linux')
-rw-r--r-- | linux/main.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/linux/main.cpp b/linux/main.cpp index 6688905ea9..6a2be43d7c 100644 --- a/linux/main.cpp +++ b/linux/main.cpp @@ -1,9 +1,9 @@ #include <mbgl/mbgl.hpp> #include <mbgl/util/uv.hpp> +#include <mbgl/platform/log.hpp> #include <mbgl/platform/platform.hpp> #include <mbgl/platform/default/settings_json.hpp> #include <mbgl/platform/default/glfw_view.hpp> -#include <mbgl/platform/default/log_stderr.hpp> #include <mbgl/storage/default_file_source.hpp> #include <mbgl/storage/default/sqlite_cache.hpp> @@ -26,8 +26,6 @@ void quit_handler(int) { } int main(int argc, char *argv[]) { - mbgl::Log::Set<mbgl::StderrLogBackend>(); - int fullscreen_flag = 0; std::string style; |