Skip to content

Commit 32259a9

Browse files
committed
fix: add semicolon after console type
1 parent 9a10e2b commit 32259a9

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

test-app/runtime/src/main/cpp/console/Console.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ void Console::assertCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
187187

188188
void Console::errorCallback(const v8::FunctionCallbackInfo <v8::Value>& info) {
189189
try {
190-
std::string log = "CONSOLE ERROR ";
190+
std::string log = "CONSOLE ERROR: ";
191191
log += buildLogString(info);
192192

193193
sendToADBLogcat(log, ANDROID_LOG_ERROR);
@@ -207,7 +207,7 @@ void Console::errorCallback(const v8::FunctionCallbackInfo <v8::Value>& info) {
207207

208208
void Console::infoCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
209209
try {
210-
std::string log = "CONSOLE INFO ";
210+
std::string log = "CONSOLE INFO: ";
211211
log += buildLogString(info);
212212

213213
sendToADBLogcat(log, ANDROID_LOG_INFO);
@@ -227,7 +227,7 @@ void Console::infoCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
227227

228228
void Console::logCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
229229
try {
230-
std::string log = "CONSOLE LOG ";
230+
std::string log = "CONSOLE LOG: ";
231231
log += buildLogString(info);
232232

233233
sendToADBLogcat(log, ANDROID_LOG_INFO);
@@ -247,7 +247,7 @@ void Console::logCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
247247

248248
void Console::warnCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
249249
try {
250-
std::string log = "CONSOLE WARN ";
250+
std::string log = "CONSOLE WARN: ";
251251
log += buildLogString(info);
252252

253253
sendToADBLogcat(log, ANDROID_LOG_WARN);
@@ -495,7 +495,7 @@ void Console::timeEndCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
495495
double diffMilliseconds = diffMicroseconds / 1000.0;
496496

497497
std::stringstream ss;
498-
ss << "CONSOLE TIME " << label << ": " << std::fixed << std::setprecision(3) << diffMilliseconds << "ms" ;
498+
ss << "CONSOLE TIME: " << label << ": " << std::fixed << std::setprecision(3) << diffMilliseconds << "ms" ;
499499
std::string log = ss.str();
500500

501501
__android_log_write(ANDROID_LOG_INFO, LOG_TAG, log.c_str());

0 commit comments

Comments
 (0)