Add logging to especial code actions.