Tarantool development patches archive
 help / color / mirror / Atom feed
From: Cyrill Gorcunov <gorcunov@gmail.com>
To: tml <tarantool-patches@dev.tarantool.org>
Subject: [Tarantool-patches] [PATCH 1/3] lua/cfg: drop unused log methods
Date: Mon,  8 Jun 2020 13:44:48 +0300	[thread overview]
Message-ID: <20200608104450.157253-2-gorcunov@gmail.com> (raw)
In-Reply-To: <20200608104450.157253-1-gorcunov@gmail.com>

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 <gorcunov@gmail.com>
---
 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

  reply	other threads:[~2020-06-08 10:45 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-08 10:44 [Tarantool-patches] [PATCH 0/3] lua/cfg: drop unused code and extend test Cyrill Gorcunov
2020-06-08 10:44 ` Cyrill Gorcunov [this message]
2020-06-08 15:29   ` [Tarantool-patches] [PATCH 1/3] lua/cfg: drop unused log methods Oleg Babin
2020-06-08 15:33     ` Cyrill Gorcunov
2020-06-08 15:37       ` Oleg Babin
2020-06-08 10:44 ` [Tarantool-patches] [PATCH 2/3] lua/cfg: drop redundant variable Cyrill Gorcunov
2020-06-08 15:31   ` Oleg Babin
2020-06-08 10:44 ` [Tarantool-patches] [PATCH 3/3] test: app-tap/logger -- test symbolic loglevels Cyrill Gorcunov
2020-06-08 15:31   ` Oleg Babin
2020-06-09  8:26   ` Kirill Yukhin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200608104450.157253-2-gorcunov@gmail.com \
    --to=gorcunov@gmail.com \
    --cc=tarantool-patches@dev.tarantool.org \
    --subject='Re: [Tarantool-patches] [PATCH 1/3] lua/cfg: drop unused log methods' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox