| 1357 | } |
| 1358 | |
| 1359 | static void capture_logs_start(void) { |
| 1360 | g_log_capture[0] = '\0'; |
| 1361 | g_prev_log_level = cbm_log_get_level(); |
| 1362 | g_prev_log_format = cbm_log_get_format(); |
| 1363 | cbm_log_set_level(CBM_LOG_DEBUG); |
| 1364 | /* The assertions below read the text encoding, so pin it rather than |
| 1365 | * inherit whatever CBM_LOG_FORMAT left set. */ |
| 1366 | cbm_log_set_format(CBM_LOG_FORMAT_TEXT); |
| 1367 | cbm_log_set_sink(capture_log_sink); |
| 1368 | } |
| 1369 | |
| 1370 | static const char *capture_logs_end(void) { |
| 1371 | cbm_log_set_sink(NULL); |
no test coverage detected