| 87 | } |
| 88 | |
| 89 | ~LogSetup() |
| 90 | { |
| 91 | LogInstance().m_file_path = prev_log_path; |
| 92 | LogInfo("Sentinel log to reopen log file"); |
| 93 | LogInstance().m_print_to_file = prev_print_to_file; |
| 94 | LogInstance().m_reopen_file = prev_reopen_file; |
| 95 | LogInstance().m_log_timestamps = prev_log_timestamps; |
| 96 | LogInstance().m_log_threadnames = prev_log_threadnames; |
| 97 | LogInstance().m_log_sourcelocations = prev_log_sourcelocations; |
| 98 | LogInstance().SetLogLevel(prev_log_level); |
| 99 | LogInstance().SetCategoryLogLevel(prev_category_levels); |
| 100 | LogInstance().SetRateLimiting(nullptr); |
| 101 | LogInstance().DisableCategory(BCLog::LogFlags::ALL); |
| 102 | LogInstance().EnableCategory(BCLog::LogFlags{prev_category_mask}); |
| 103 | } |
| 104 | }; |
| 105 | |
| 106 | BOOST_AUTO_TEST_CASE(logging_timer) |
nothing calls this directly
no test coverage detected