From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp29.i.mail.ru (smtp29.i.mail.ru [94.100.177.89]) (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 65661469710 for ; Fri, 29 May 2020 13:22:52 +0300 (MSK) References: <20200528100738.221911-1-gorcunov@gmail.com> <20200528100738.221911-8-gorcunov@gmail.com> <19d91eba-a988-0ee8-6c1b-1b83dca9fce8@tarantool.org> <51ab9c83-4392-b5bd-49ac-652b1892afa0@tarantool.org> <68d0aeab-2db7-b552-ec0d-4bc64de792e1@tarantool.org> <20200529094944.GH215590@grain> From: Leonid Vasiliev Message-ID: <8ed37f9d-8a13-fdec-296f-78b137ec774e@tarantool.org> Date: Fri, 29 May 2020 13:22:51 +0300 MIME-Version: 1.0 In-Reply-To: <20200529094944.GH215590@grain> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US 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: Cyrill Gorcunov Cc: tml I don't object, but why it can't be implemented by simple callback (we have only one recipient), which will be set in load_cfg.lua and called in case of updating. Perhaps, we can don't copy the value to the box.cfg and always return the value from "log"? On 29.05.2020 12:49, Cyrill Gorcunov wrote: > On Fri, May 29, 2020 at 12:16:08PM +0300, Leonid Vasiliev wrote: >> Hi! >> Maybe we need to apply something like the "observer" pattern. >> When changes in "log" occur, it alerts subscribers. > > Seriously, guys, I'm not going to bring some watchdog here, > at least in this series 'cause it become over the bounds already. > > I agree that we need a general solution with proper notification > queues and etc but lets postpone it for better times. I think > box_api interface is enough for now. It might be not that elegant > as it could though. After all we will be able to easily extend it > on top. > > I'm preparing the v5 now and will try to address all your comments. > At least most of them :-) >