Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
Deprecated JSON RPC - added deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
IzabellaRaulin committed Oct 24, 2016
1 parent dbbb1ae commit 908767e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions control/available_plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ func newAvailablePlugin(resp plugin.Response, emitter gomit.Emitter, ep executab
case plugin.CollectorPluginType:
switch resp.Meta.RPCType {
case plugin.JSONRPC:
log.WithFields(log.Fields{
"_module": "control-aplugin",
"_block": "newAvailablePlugin",
"plugin_name": ap.name,
}).Warning("This plugin is using a deprecated JSON RPC protocol. Find more information here: https://github.com/intelsdi-x/snap/issues/1296 ")
c, e := client.NewCollectorHttpJSONRPCClient(listenURL, DefaultClientTimeout, resp.PublicKey, !resp.Meta.Unsecure)
if e != nil {
return nil, errors.New("error while creating client connection: " + e.Error())
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/* ** DEPRECATED **
For more information, see our deprecation notice
on Github: https://github.com/intelsdi-x/snap/issues/1296
*/

/*
http://www.apache.org/licenses/LICENSE-2.0.txt
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/* ** DEPRECATED **
For more information, see our deprecation notice
on Github: https://github.com/intelsdi-x/snap/issues/1296
*/

/*
http://www.apache.org/licenses/LICENSE-2.0.txt
Expand Down

0 comments on commit 908767e

Please sign in to comment.