mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	middleware: Log <user.id>@subdomain instead of subdomain/<user.id>.
It was decided that the new format is preferable.
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							a1daf0cf83
						
					
				
				
					commit
					eb0216c5a8
				
			@@ -292,7 +292,7 @@ class LogRequests(MiddlewareMixin):
 | 
			
		||||
            if hasattr(request, 'user') and hasattr(request.user, 'format_requestor_for_logs'):
 | 
			
		||||
                requestor_for_logs = request.user.format_requestor_for_logs()
 | 
			
		||||
            else:
 | 
			
		||||
                requestor_for_logs = "%s/unauth" % (get_subdomain(request) or 'root',)
 | 
			
		||||
                requestor_for_logs = "unauth@%s" % (get_subdomain(request) or 'root',)
 | 
			
		||||
        try:
 | 
			
		||||
            client = request.client.name
 | 
			
		||||
        except Exception:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user