def create_log(self, varname, request, value='', stamp=None):
        if request.user or request.session and request.session.session_key:
            if varname.startswith('E'):
                # E just signifies we can remove these for the product version
                varname = varname[1:]  # strip off the starting E
            if not stamp:
                stamp = timezone.now()
            log = self.model(user=request.user,
                             session=request.session.session_key,
                             varname=varname,
                             value=value,
                             stamp=stamp)
            log.save()
            return log
        else:
            return None
dataset/ETHPy150Open orcasgit/django-request-log/log/models.py/LogManager.create_log/operator `and` -> `or`