From 18f5f850cddf65607fdc5533af1adfe6500b65bb Mon Sep 17 00:00:00 2001
From: Jack Robison <jackrobison@lbry.io>
Date: Tue, 15 Aug 2017 11:17:50 -0400
Subject: [PATCH] show deprecated warning

---
 lbrynet/daemon/auth/server.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lbrynet/daemon/auth/server.py b/lbrynet/daemon/auth/server.py
index 05c39799a..ed5b100a5 100644
--- a/lbrynet/daemon/auth/server.py
+++ b/lbrynet/daemon/auth/server.py
@@ -340,7 +340,6 @@ class AuthJSONRPCServer(AuthorizedBase):
             )
             return server.NOT_DONE_YET
         except DeprecatedAPIMethodError:
-            log.warning('API function is deprecated %s', function_name)
             self._render_error(
                 JSONRPCError(None, JSONRPCError.CODE_METHOD_NOT_FOUND),
                 request, id_
@@ -475,6 +474,10 @@ class AuthJSONRPCServer(AuthorizedBase):
 
     def _check_deprecated(self, function_path):
         if function_path in self.deprecated_methods:
+            new_command = self.deprecated_methods[function_path]._new_command
+            log.warning('API function \"%s\" is deprecated, please update to use \"%s\"',
+                        function_path, new_command)
+
             raise DeprecatedAPIMethodError(function_path)
 
     def _verify_method_is_callable(self, function_path):