Index: src/client/linux/handler/exception_handler.cc |
diff --git a/src/client/linux/handler/exception_handler.cc b/src/client/linux/handler/exception_handler.cc |
index dca7e7f029ca36c85a3c017d04cb8ff7a83bf1e2..9b20fe25195fde766403c7ca7cc41b880252a0d9 100644 |
--- a/src/client/linux/handler/exception_handler.cc |
+++ b/src/client/linux/handler/exception_handler.cc |
@@ -233,6 +233,11 @@ ExceptionHandler::ExceptionHandler(const MinidumpDescriptor& descriptor, |
!minidump_descriptor_.IsMicrodumpOnConsole()) |
minidump_descriptor_.UpdatePath(); |
+#if defined(__ANDROID__) |
+ if (minidump_descriptor_.IsMicrodumpOnConsole()) |
+ logger::initializeCrashLogWriter(); |
+#endif |
+ |
pthread_mutex_lock(&g_handler_stack_mutex_); |
if (!g_handler_stack_) |
g_handler_stack_ = new std::vector<ExceptionHandler*>; |