[TS] log when an exception is thrown inside of a trait call