History

Enable logging from exec for specific components. Remove trailing newlines from all existing logging calls.

arr committed 9 years ago

Commit dd0789c1 parent 3098fb816 files · +185 −112Browse files

Showing the changes to src/vm/vm_exception_handler.cpp (1 of 16 files). Show all

Unified · Split

src/vm/vm_exception_handler.cpp+3−3
@@ -26,7 +26,7 @@ std::tuple<const handler_t *, vm_frame_t *, vm_pc_t> disvm::runtime::find_except · 25 unmodified lines
2626
2727 while (current_frame != nullptr)
2828 {
29− debug::log_msg(debug::component_trace_t::exception, debug::log_level_t::debug, "begin: handler: %d\n", unwind_depth);
29+ debug::log_msg(debug::component_trace_t::exception, debug::log_level_t::debug, "begin: handler: %d", unwind_depth);
3030
3131 auto &handler_section = current_module->module->handler_section;
3232
@@ -42,12 +42,12 @@ std::tuple<const handler_t *, vm_frame_t *, vm_pc_t> disvm::runtime::find_except · 9 unmodified lines
4242 auto exception_name = exception.name.get();
4343 if (exception_id.compare_to(exception_name) == 0)
4444 {
45− debug::log_msg(debug::component_trace_t::exception, debug::log_level_t::debug, "end: handler: match: %d\n", unwind_depth);
45+ debug::log_msg(debug::component_trace_t::exception, debug::log_level_t::debug, "end: handler: match: %d", unwind_depth);
4646 return std::make_tuple(&handler, current_frame, exception.pc);
4747 }
4848 else if (exception_name == nullptr && exception.pc != runtime_constants::invalid_program_counter)
4949 {
50− debug::log_msg(debug::component_trace_t::exception, debug::log_level_t::debug, "end: handler: fallback: %d\n", unwind_depth);
50+ debug::log_msg(debug::component_trace_t::exception, debug::log_level_t::debug, "end: handler: fallback: %d", unwind_depth);
5151 return std::make_tuple(&handler, current_frame, exception.pc);
5252 }
5353 }