code: def log_update(self, service, to_update, status, count):
          
          if to_update:
              if status:
                  msg = "{} - {} new data".format(service, count)
                  update_result(service.id, msg="OK", status=status)
                  logger.info(msg)
              else:
                  msg = "{} AN ERROR OCCURS ".format(service)
                  update_result(service.id, msg=msg, status=status)
                  logger.warning(msg)
          else:
              logger.debug("{} nothing new ".format(service))
docs: lets log everything at the end
              :param service: service object
              :param to_update: boolean to check if we have to update
              :param status: is everything worked fine ?
              :param count: number of data to update
              :type service: service object
              :type to_update: boolean
              :type status: boolean
              :type count: interger