give more info in deprecation warning

This commit is contained in:
Jim Witschey
2017-06-06 16:30:59 -04:00
parent ffafdb9ecc
commit 2775630ef8

View File

@@ -424,7 +424,8 @@ class WhiteListRoundRobinPolicy(RoundRobinPolicy):
connections to.
"""
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)
# DeprecationWarnings are silent by default so we also log the message
log.warning(msg)