give more info in deprecation warning
This commit is contained in:
		@@ -424,7 +424,8 @@ class WhiteListRoundRobinPolicy(RoundRobinPolicy):
 | 
				
			|||||||
        connections to.
 | 
					        connections to.
 | 
				
			||||||
        """
 | 
					        """
 | 
				
			||||||
        msg = ('WhiteListRoundRobinPolicy is deprecated. '
 | 
					        msg = ('WhiteListRoundRobinPolicy is deprecated. '
 | 
				
			||||||
               'It will be removed in 4.0.')
 | 
					               'It will be removed in 4.0. '
 | 
				
			||||||
 | 
					               'It can effectively be reimplemented using HostFilterPolicy.')
 | 
				
			||||||
        warn(msg, DeprecationWarning)
 | 
					        warn(msg, DeprecationWarning)
 | 
				
			||||||
        # DeprecationWarnings are silent by default so we also log the message
 | 
					        # DeprecationWarnings are silent by default so we also log the message
 | 
				
			||||||
        log.warning(msg)
 | 
					        log.warning(msg)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user