print exception to log