From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-f193.google.com (mail-lj1-f193.google.com [209.85.208.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 61775469710 for ; Mon, 8 Jun 2020 13:45:06 +0300 (MSK) Received: by mail-lj1-f193.google.com with SMTP id s1so19854889ljo.0 for ; Mon, 08 Jun 2020 03:45:06 -0700 (PDT) From: Cyrill Gorcunov Date: Mon, 8 Jun 2020 13:44:48 +0300 Message-Id: <20200608104450.157253-2-gorcunov@gmail.com> In-Reply-To: <20200608104450.157253-1-gorcunov@gmail.com> References: <20200608104450.157253-1-gorcunov@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 1/3] lua/cfg: drop unused log methods List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tml The dynamic configuration of logging level and format now goes via log module. These functions are no longed needed. Part-of #689 Signed-off-by: Cyrill Gorcunov --- src/box/lua/cfg.cc | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/src/box/lua/cfg.cc b/src/box/lua/cfg.cc index ed56b0b5c..a5b15e527 100644 --- a/src/box/lua/cfg.cc +++ b/src/box/lua/cfg.cc @@ -87,28 +87,6 @@ lbox_cfg_set_replication(struct lua_State *L) return 0; } -static int -lbox_cfg_set_log_level(struct lua_State *L) -{ - try { - box_set_log_level(); - } catch (Exception *) { - luaT_error(L); - } - return 0; -} - -static int -lbox_cfg_set_log_format(struct lua_State *L) -{ - try { - box_set_log_format(); - } catch (Exception *) { - luaT_error(L); - } - return 0; -} - static int lbox_cfg_set_readahead(struct lua_State *L) { @@ -374,8 +352,6 @@ box_lua_cfg_init(struct lua_State *L) {"cfg_set_listen", lbox_cfg_set_listen}, {"cfg_set_replication", lbox_cfg_set_replication}, {"cfg_set_worker_pool_threads", lbox_cfg_set_worker_pool_threads}, - {"cfg_set_log_level", lbox_cfg_set_log_level}, - {"cfg_set_log_format", lbox_cfg_set_log_format}, {"cfg_set_readahead", lbox_cfg_set_readahead}, {"cfg_set_io_collect_interval", lbox_cfg_set_io_collect_interval}, {"cfg_set_too_long_threshold", lbox_cfg_set_too_long_threshold}, -- 2.26.2