code: def read_file(filename):
      
      logging.debug(_('Reading file: %s'), filename)
      try:
          with open(filename) as readable:
              return readable.read()
      except OSError:
          logging.error(_('Error reading file: %s'), filename)
          return ''
docs: Read a file.