logging on commit