add inner exceptions to logging