Skip to content

Commit 557fa50

Browse files
robertsipkayichoi
authored andcommitted
Set log level to JERRY_LOG_LEVEL_DEBUG when using mem-stats or show-opcodes (jerryscript-project#1848)
JerryScript-DCO-1.0-Signed-off-by: Robert Sipka [email protected]
1 parent de53adb commit 557fa50

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

targets/tizenrt-artik05x/apps/jerryscript/jerry_main.c

+3
Original file line numberDiff line numberDiff line change
@@ -371,14 +371,17 @@ int jerry_main (int argc, char *argv[])
371371
}
372372
else if (!strcmp ("--mem-stats", argv[i]))
373373
{
374+
jerry_log_level = JERRY_LOG_LEVEL_DEBUG;
374375
flags |= JERRY_INIT_MEM_STATS;
375376
}
376377
else if (!strcmp ("--mem-stats-separate", argv[i]))
377378
{
379+
jerry_log_level = JERRY_LOG_LEVEL_DEBUG;
378380
flags |= JERRY_INIT_MEM_STATS_SEPARATE;
379381
}
380382
else if (!strcmp ("--show-opcodes", argv[i]))
381383
{
384+
jerry_log_level = JERRY_LOG_LEVEL_DEBUG;
382385
flags |= JERRY_INIT_SHOW_OPCODES | JERRY_INIT_SHOW_REGEXP_OPCODES;
383386
}
384387
else if (!strcmp ("--log-level", argv[i]))

0 commit comments

Comments
 (0)