From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id E6EEE6EC5F; Thu, 15 Apr 2021 09:04:28 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org E6EEE6EC5F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1618466668; bh=mYb87xvV5keIQirGDC0O/VvMkbCKURIKVtQdD8wZ9tg=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=jr5FOLFkKgCoSuCvnQyHH96hov3VLmM7gSSc8JFbohiy74wQvvv9nnOH8wjUl11eS /XyOyvIDWUyYkTpLdzYZePatFFOjUbRAPCQSbyB5AYPuHkz/u07d4jsFLP2zAKBTJR BKvCzNFKdID+hhljny7HlG/G9w3KJ5oUKisoHNFw= Received: from smtp49.i.mail.ru (smtp49.i.mail.ru [94.100.177.109]) (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 A0C536EC5F for ; Thu, 15 Apr 2021 09:03:55 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org A0C536EC5F Received: by smtp49.i.mail.ru with esmtpa (envelope-from ) id 1lWv6Y-0005Jq-Vi; Thu, 15 Apr 2021 09:03:55 +0300 To: Leonid Vasiliev Date: Thu, 15 Apr 2021 09:04:11 +0300 Message-Id: <75b9f0d4add97b417bc4a01724f2b76939b14651.1618466243.git.alexander.turenko@tarantool.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-7564579A: 646B95376F6C166E X-77F55803: 4F1203BC0FB41BD92FFCB8E6708E7480257C85EA0BB7A95D0F00AE41BB9A5343182A05F538085040DDA150AB50EB276D791BC8AC79CF7F9C7BD6E457A9B849C908EAE3C0A9E94810 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7DB84ED444C624799EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637651D61939D0B3DD78638F802B75D45FF914D58D5BE9E6BC1A93B80C6DEB9DEE97C6FB206A91F05B2B127DD0DD51062565AB40319DAFA8B5D2AAFC1FEE5B068F7D2E47CDBA5A96583C09775C1D3CA48CF329DC2EF12373DEA117882F4460429724CE54428C33FAD30A8DF7F3B2552694AC26CFBAC0749D213D2E47CDBA5A9658378DA827A17800CE7E688A9D963DC14319FA2833FD35BB23DF004C90652538430302FCEF25BFAB3454AD6D5ED66289B5278DA827A17800CE73BD2383D3630880A7B076A6E789B0E97A8DF7F3B2552694A1E7802607F20496D49FD398EE364050F140C956E756FBB7A4D0DA9BD313A0613B3661434B16C20AC78D18283394535A9E827F84554CEF50127C277FBC8AE2E8BA83251EDC214901ED5E8D9A59859A8B60ACC680F07EA8554089D37D7C0E48F6C5571747095F342E88FB05168BE4CE3AF X-C1DE0DAB: C20DE7B7AB408E4181F030C43753B8186998911F362727C414F749A5E30D975CB69F9342289A40B3CEA0AB0C872456A750E1C552C7D2CE619C2B6934AE262D3EE7EAB7254005DCED7532B743992DF240BDC6A1CF3F042BAD6DF99611D93F60EF0417BEADF48D1460699F904B3F4130E343918A1A30D5E7FCCB5012B2E24CD356 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D343DCFC3BEDFB0242D379DC1FBE794DAE01E882350F93DE9C0A524176D6580BC50884EF462AA433F8D1D7E09C32AA3244C4EBDCD265AD3CFA6005DE2E6F13EFF1939C99C45E8D137E9927AC6DF5659F194 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojbL9S8ysBdXi23FRaUALWyDLJcjinm1VD X-Mailru-Sender: FFAA8E4AEE17E37C3731A083A1A85ADE0BC427573F7FBA61649EBDCA0B93ABCAB7EA9FE7735C3DBFC664A44C781FCEA7C77752E0C033A69EDF9F2CE1E9CF805D8CD356D4F938FF726C18EFA0BB12DBB0 X-Mras: Ok Subject: [Tarantool-patches] [PATCH 1/2] cfg: provide types for logger options X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Alexander Turenko via Tarantool-patches Reply-To: Alexander Turenko Cc: tarantool-patches@dev.tarantool.org Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" From: Cyrill Gorcunov This needed for fast type check when fetching options from environment variable. Part-of #5602 Signed-off-by: Cyrill Gorcunov --- src/box/lua/load_cfg.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/box/lua/load_cfg.lua b/src/box/lua/load_cfg.lua index c444cc235..72e889071 100644 --- a/src/box/lua/load_cfg.lua +++ b/src/box/lua/load_cfg.lua @@ -119,6 +119,18 @@ local module_cfg = { log_format = log.box_api, } +-- cfg types for modules, probably better to +-- provide some API with type enumeration or +-- similar. Currently it has use for environment +-- processing only. +local module_cfg_type = { + -- logging + log = 'string', + log_nonblock = 'boolean', + log_level = 'number, string', + log_format = 'string', +} + -- types of available options -- could be comma separated lua types or 'any' if any type is allowed local template_cfg = { -- 2.30.0