diff options
author | takeshi_hoshina <takeshi_hoshina@mail.toyota.co.jp> | 2020-11-02 11:07:33 +0900 |
---|---|---|
committer | takeshi_hoshina <takeshi_hoshina@mail.toyota.co.jp> | 2020-11-02 11:07:33 +0900 |
commit | 1c7d6584a7811b7785ae5c1e378f14b5ba0971cf (patch) | |
tree | cd70a267a5ef105ba32f200aa088e281fbd85747 /external/meta-sdl/recipes-automotive/sdl-core/sdl-core/0005-add-env-for-log4cxx-properties-path.patch | |
parent | 4204309872da5cb401cbb2729d9e2d4869a87f42 (diff) |
basesystem-jjsandbox/ToshikazuOhiwa/master-jj
recipes
Diffstat (limited to 'external/meta-sdl/recipes-automotive/sdl-core/sdl-core/0005-add-env-for-log4cxx-properties-path.patch')
-rw-r--r-- | external/meta-sdl/recipes-automotive/sdl-core/sdl-core/0005-add-env-for-log4cxx-properties-path.patch | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/external/meta-sdl/recipes-automotive/sdl-core/sdl-core/0005-add-env-for-log4cxx-properties-path.patch b/external/meta-sdl/recipes-automotive/sdl-core/sdl-core/0005-add-env-for-log4cxx-properties-path.patch deleted file mode 100644 index 75d43906..00000000 --- a/external/meta-sdl/recipes-automotive/sdl-core/sdl-core/0005-add-env-for-log4cxx-properties-path.patch +++ /dev/null @@ -1,36 +0,0 @@ -From 570405af8e5c874db1852bdfb333ec0c941093ac Mon Sep 17 00:00:00 2001 -From: Phong Tran <tranmanphong@gmail.com> -Date: Sun, 12 Feb 2017 16:54:48 +0700 -Subject: [PATCH 05/10] add env for log4cxx properties path - -Add the env variable SDL_LOG4CXX_PROPERTIES_FILE -to indicate the path of log4cxx configure file. - -%% original patch: 0005-add-env-for-log4cxx-properties-path.patch ---- - src/appMain/main.cc | 9 +++++++-- - 1 file changed, 7 insertions(+), 2 deletions(-) - -diff --git a/src/appMain/main.cc b/src/appMain/main.cc -index feb5b58..08e65f7 100644 ---- a/src/appMain/main.cc -+++ b/src/appMain/main.cc -@@ -112,8 +112,13 @@ int32_t main(int32_t argc, char** argv) { - - // -------------------------------------------------------------------------- - // Logger initialization -- INIT_LOGGER("log4cxx.properties", profile_instance.logs_enabled()); -- -+ const char* log4cxx_path = getenv("SDL_LOG4CXX_PROPERTIES_FILE"); -+ if (!log4cxx_path) { -+ INIT_LOGGER("log4cxx.properties", profile_instance.logs_enabled()); -+ } else { -+ std::string log4cxx_properties = std::string(log4cxx_path); -+ INIT_LOGGER(log4cxx_properties, profile_instance.logs_enabled()); -+ } - threads::Thread::SetNameForId(threads::Thread::CurrentId(), "MainThread"); - - if (!utils::appenders_loader.Loaded()) { --- -2.7.4 - |