mirror of
				https://github.com/viq/NewsBlur.git
				synced 2025-11-01 09:09:16 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			9 lines
		
	
	
		
			No EOL
		
	
	
		
			308 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
		
			No EOL
		
	
	
		
			308 B
		
	
	
	
		
			Python
		
	
	
	
	
	
from django.conf import settings
 | 
						|
from utils import log as logging
 | 
						|
 | 
						|
class DumpRequestMiddleware:
 | 
						|
    def process_request(self, request):
 | 
						|
        if settings.DEBUG:
 | 
						|
            request_items = request.REQUEST.items()
 | 
						|
            if request_items:
 | 
						|
                logging.debug("~BC~FK%s" % dict(request_items)) |