From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 8BDD2288D8 for ; Wed, 28 Mar 2018 09:35:54 -0400 (EDT) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id e_dDkP8GGbYc for ; Wed, 28 Mar 2018 09:35:54 -0400 (EDT) Received: from smtp63.i.mail.ru (smtp63.i.mail.ru [217.69.128.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id 271D52849B for ; Wed, 28 Mar 2018 09:35:54 -0400 (EDT) From: Vladislav Shpilevoy Subject: [tarantool-patches] [PATCH v2 3/3] netbox: deprecate console support Date: Wed, 28 Mar 2018 16:35:50 +0300 Message-Id: <2db41bb2a2ccd52fbc76b568d887740e4cea2031.1522243429.git.v.shpilevoy@tarantool.org> In-Reply-To: References: In-Reply-To: References: Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-subscribe: List-owner: List-post: List-archive: To: tarantool-patches@freelists.org Cc: Vladislav Shpilevoy Print warning about that. After a while the cosole support will be deleted from netbox. --- src/box/lua/net_box.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/box/lua/net_box.lua b/src/box/lua/net_box.lua index 5691dcb9e..0309eef17 100644 --- a/src/box/lua/net_box.lua +++ b/src/box/lua/net_box.lua @@ -650,6 +650,11 @@ local function new_sm(host, port, opts, connection, greeting) local user, password = opts.user, opts.password; opts.password = nil local last_reconnect_error local remote = {host = host, port = port, opts = opts, state = 'initial'} + -- @deprecated since 1.10 + if greeting and greeting.protocol == 'Lua console' or opts.console then + log.warn("Netbox text protocol support is deprecated since 1.10, ".. + "please use require('console').connect() instead") + end local function callback(what, ...) if what == 'state_changed' then local state, errno, err = ... -- 2.14.3 (Apple Git-98)