substitute '%s' in 'Internal Server Error: %s' with request.path, exc_info set to exc_info,
logger . error ( 'Internal Server Error: %s' , request . path , exc_info = exc_info , extra = { 'status_code' : 500 , 'request' : request } )