Change logging level to error when there is an error that prevents message sending.