@login_notrequired
def log_frontend_event(request):
 def get(param, default=None):
  return request.REQUEST.get(param, default)
 level = _LOG_LEVELS.get(get('level'), logging.INFO)
 msg = ('Untrusted log event from user %s: %s' % (request.user, get('message', '')[:_MAX_LOG_FRONTEND_EVENT_LENGTH]))
 _LOG_FRONTEND_LOGGER.log(level, msg)
 return HttpResponse('')

@ login_notrequired def log_frontend_event ( request ) : def get ( param , default = None ) : return request . REQUEST . get ( param , default ) level = _LOG_LEVELS . get ( get ( 'level' ) , logging . INFO ) msg = ( 'Untrusted log event from user %s: %s' % ( request . user , get ( 'message' , '' ) [ : _MAX_LOG_FRONTEND_EVENT_LENGTH ] ) ) _LOG_FRONTEND_LOGGER . log ( level , msg ) return HttpResponse ( '' )
logs arguments to servers log .