pub fn log_error(error: &DMSCError)
Logs an error with enhanced formatting. This helper function logs the error with its suggestion for debugging.