Add logging
Rewrite repomd.xml and primary.xml if necessary