Add logging to attribute save