Skip to content

Commit 74b8045

Browse files
authored
Merge branch 'master' into trifonov/filter-broken-pipe
2 parents 226053f + 9e4aa19 commit 74b8045

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

test-app/runtime/src/main/cpp/MetadataNode.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1615,12 +1615,12 @@ void MetadataNode::BuildMetadata(const string& filesPath) {
16151615
timeval time2;
16161616
gettimeofday(&time2, nullptr);
16171617

1618-
__android_log_print(ANDROID_LOG_DEBUG, "TNS.Native", "lenNodes=%d, lenNames=%d, lenValues=%d", lenNodes, lenNames, lenValues);
1618+
DEBUG_WRITE("lenNodes=%d, lenNames=%d, lenValues=%d", lenNodes, lenNames, lenValues);
16191619

16201620
long millis1 = (time1.tv_sec * 1000) + (time1.tv_usec / 1000);
16211621
long millis2 = (time2.tv_sec * 1000) + (time2.tv_usec / 1000);
16221622

1623-
__android_log_print(ANDROID_LOG_DEBUG, "TNS.Native", "time=%ld", (millis2 - millis1));
1623+
DEBUG_WRITE("time=%ld", (millis2 - millis1));
16241624

16251625
BuildMetadata(lenNodes, reinterpret_cast<uint8_t*>(nodes), lenNames, reinterpret_cast<uint8_t*>(names), lenValues, reinterpret_cast<uint8_t*>(values));
16261626

test-app/runtime/src/main/cpp/Runtime.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ void SIGABRT_handler(int sigNumber) {
4646
}
4747

4848
void Runtime::Init(JavaVM* vm, void* reserved) {
49-
__android_log_print(ANDROID_LOG_INFO, "TNS.Native", "NativeScript Runtime Version %s, commit %s", NATIVE_SCRIPT_RUNTIME_VERSION, NATIVE_SCRIPT_RUNTIME_COMMIT_SHA);
50-
DEBUG_WRITE("JNI_ONLoad");
49+
__android_log_print(ANDROID_LOG_INFO, "TNS.Runtime", "NativeScript Runtime Version %s, commit %s", NATIVE_SCRIPT_RUNTIME_VERSION, NATIVE_SCRIPT_RUNTIME_COMMIT_SHA);
5150

5251
if (Runtime::s_jvm == nullptr) {
5352
s_jvm = vm;
@@ -61,8 +60,6 @@ void Runtime::Init(JavaVM* vm, void* reserved) {
6160
action.sa_handler = SIGABRT_handler;
6261
sigaction(SIGABRT, &action, NULL);
6362
}
64-
65-
DEBUG_WRITE("JNI_ONLoad END");
6663
}
6764

6865
int Runtime::GetAndroidVersion() {
@@ -376,7 +373,7 @@ void Runtime::PassExceptionToJsNative(JNIEnv* env, jobject obj, jthrowable excep
376373

377374
//create error message
378375
string errMsg = isDiscarded ? "An exception was caught and discarded. You can look at \"stackTrace\" or \"nativeException\" for more detailed information about the exception.":
379-
"The application crashed because of an uncaught exception. You can look at \"stackTrace\" or \"nativeException\" for more detailed information about the exception.";
376+
"The application crashed because of an uncaught exception. You can look at \"stackTrace\" or \"nativeException\" for more detailed information about the exception.";
380377

381378
auto errObj = Exception::Error(ArgConverter::ConvertToV8String(isolate, errMsg)).As<Object>();
382379

@@ -563,7 +560,7 @@ Isolate* Runtime::PrepareV8Runtime(const string& filesPath, const string& native
563560

564561
isolate->AddMessageListener(NativeScriptException::OnUncaughtError);
565562

566-
__android_log_print(ANDROID_LOG_DEBUG, "TNS.Native", "V8 version %s", V8::GetVersion());
563+
__android_log_print(ANDROID_LOG_DEBUG, "TNS.Runtime", "V8 version %s", V8::GetVersion());
567564

568565
auto globalFunctionTemplate = FunctionTemplate::New(isolate);
569566
globalFunctionTemplate->SetClassName(ArgConverter::ConvertToV8String(isolate, "NativeScriptGlobalObject"));

0 commit comments

Comments
 (0)