fix for inner exception logging