From 2775630ef878607dc6a1fc7398729cd9fcfb018b Mon Sep 17 00:00:00 2001 From: Jim Witschey Date: Tue, 6 Jun 2017 16:30:59 -0400 Subject: [PATCH] give more info in deprecation warning --- cassandra/policies.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cassandra/policies.py b/cassandra/policies.py index c617c95c..418055ba 100644 --- a/cassandra/policies.py +++ b/cassandra/policies.py @@ -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)