diff --git a/libraries/AP_Logger/AP_Logger.cpp b/libraries/AP_Logger/AP_Logger.cpp index b004284b89a72..5ea3d7b595be7 100644 --- a/libraries/AP_Logger/AP_Logger.cpp +++ b/libraries/AP_Logger/AP_Logger.cpp @@ -1567,7 +1567,10 @@ void AP_Logger::prepare_at_arming_sys_file_logging() */ static const char *log_content_filenames[] = { "@SYS/uarts.txt", +#ifdef HAL_DEBUG_BUILD + // logging dma.txt has a performance impact "@SYS/dma.txt", +#endif "@SYS/memory.txt", "@SYS/threads.txt", "@SYS/timers.txt",