catch warnings in trapz_loglog