Ref #3391 fix debug log in repository