ENH: add more detailed logging