bug 5783: follow-up - fix logging of modifications