i would join all the lines and then do the log: 

      CfgStr = ["  %s: %s" % (config, value.value) for .. -=].join("\n")
      self.log.debug(CfgStr)

So the log prefix would be displayed only once.