modified the commit log handler