Work towards logging just before a return statement.