From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-f196.google.com (mail-lj1-f196.google.com [209.85.208.196]) (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 A87F4469710 for ; Fri, 29 May 2020 13:38:22 +0300 (MSK) Received: by mail-lj1-f196.google.com with SMTP id q2so1964643ljm.10 for ; Fri, 29 May 2020 03:38:22 -0700 (PDT) Date: Fri, 29 May 2020 13:38:19 +0300 From: Cyrill Gorcunov Message-ID: <20200529103819.GJ215590@grain> 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> <8ed37f9d-8a13-fdec-296f-78b137ec774e@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8ed37f9d-8a13-fdec-296f-78b137ec774e@tarantool.org> 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 Cc: tml On Fri, May 29, 2020 at 01:22:51PM +0300, Leonid Vasiliev wrote: > 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. Is not it the same as we do now? box.load_cfg apply_default_modules_cfg log.box_api.cfg_apply_default(cfg) box.reload_cfg update_modules_cfg log.box_api.cfg_update The thing is that if we create some kind of geneal callbacks we need to provide that named "stages" and hook-in modules when they're loaded in. If you have some other code in mind please show it as a pseudocode > > Perhaps, we can don't copy the value to the box.cfg and always return the > value from "log"?