From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp33.i.mail.ru (smtp33.i.mail.ru [94.100.177.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 34167469710 for ; Fri, 29 May 2020 11:53:47 +0300 (MSK) References: <20200528100738.221911-1-gorcunov@gmail.com> <20200528100738.221911-8-gorcunov@gmail.com> <19d91eba-a988-0ee8-6c1b-1b83dca9fce8@tarantool.org> From: Oleg Babin Message-ID: <51ab9c83-4392-b5bd-49ac-652b1892afa0@tarantool.org> Date: Fri, 29 May 2020 11:53:45 +0300 MIME-Version: 1.0 In-Reply-To: <19d91eba-a988-0ee8-6c1b-1b83dca9fce8@tarantool.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Subject: Re: [Tarantool-patches] [PATCH v4 7/8] lua/log: allow to configure logging without a box List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Leonid Vasiliev , Cyrill Gorcunov , tml Hi! It's ok I think. box.cfg table stores user-defined values. But it's a good point. There is an example of similar behaviour[1]: ``` tarantool> box.cfg{listen = 0} --- ... tarantool> box.cfg.listen --- - '0' ... tarantool> box.info.listen --- - '[::]:64991' ... ``` box.cfg.listen is "0" because you acually specify it by hands. box.info.listen is real value of property. My point in such case don't try to support consistency between box.cfg and log.cfg. But: - log.cfg should always store an actual value of parameters - box.info (maybe, but not box.cfg) should also do it. I hope it's appropriate stay it as is but file an issue to fix such it in future. It won't breaking change for existing installations (that doesn't use log.cfg{}) [1] https://github.com/tarantool/tarantool/issues/4620 On 29/05/2020 11:41, Leonid Vasiliev wrote: > Hi! Thank you for the patch. > See some comments below. ... > > tarantool> log.cfg{log_level = 2} > --- > ... > > tarantool> box.cfg.log_level > --- > - 3 > ... > > tarantool> log.cfg.log_level > --- > - 2 > ...