fedora mock build fix

fix log.warn bug