you should use 
`self.log.error("Copying %s to installation dir %s failed: %s", srcfile, destdir, err)`