add a log message if the old and new one are different