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
26 26
27 while (current_frame != nullptr)27 while (current_frame != nullptr)
28 {28 {
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);
30 30
31 auto &handler_section = current_module->module->handler_section;31 auto &handler_section = current_module->module->handler_section;
32 32
@@ -42,12 +42,12 @@ std::tuple<const handler_t *, vm_frame_t *, vm_pc_t> disvm::runtime::find_except · 9 unmodified lines
42 auto exception_name = exception.name.get();42 auto exception_name = exception.name.get();
43 if (exception_id.compare_to(exception_name) == 0)43 if (exception_id.compare_to(exception_name) == 0)
44 {44 {
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);
46 return std::make_tuple(&handler, current_frame, exception.pc);46 return std::make_tuple(&handler, current_frame, exception.pc);
47 }47 }
48 else if (exception_name == nullptr && exception.pc != runtime_constants::invalid_program_counter)48 else if (exception_name == nullptr && exception.pc != runtime_constants::invalid_program_counter)
49 {49 {
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);
51 return std::make_tuple(&handler, current_frame, exception.pc);51 return std::make_tuple(&handler, current_frame, exception.pc);
52 }52 }
53 }53 }