First of all, you always want to tend to your child. Suspend any of your usual sleep approaches during that time and make sure that you do everything that you can to help your baby feel comfortable. That depends on your individual comfort with using some kind of infant pain medication or something more holistic. Some people suggest putting something warm on the ear, making sure it's not too warm, to help relieve pain from an ear infection. I'm sure that pediatricians can give them some suggestions, but you definitely want your baby to be soothed and comforted during the night.