don't log doc contents if file is unchanged.