From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id B7BE125245 for ; Tue, 23 Jul 2019 18:31:51 -0400 (EDT) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id calVL1-YClmC for ; Tue, 23 Jul 2019 18:31:51 -0400 (EDT) Received: from mail-lj1-f173.google.com (mail-lj1-f173.google.com [209.85.208.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id 6BB9A24119 for ; Tue, 23 Jul 2019 18:31:51 -0400 (EDT) Received: by mail-lj1-f173.google.com with SMTP id v24so42654269ljg.13 for ; Tue, 23 Jul 2019 15:31:51 -0700 (PDT) From: Cyrill Gorcunov Subject: [tarantool-patches] [PATCH 3/5] box/lua/console: Don't serialize function body Date: Wed, 24 Jul 2019 01:31:11 +0300 Message-Id: <20190723223113.16084-4-gorcunov@gmail.com> In-Reply-To: <20190723223113.16084-1-gorcunov@gmail.com> References: <20190723223113.16084-1-gorcunov@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-Help: List-Unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-Subscribe: List-Owner: List-post: List-Archive: To: tml Cc: Alexander Turenko , Kirill Yukhin , Konstantin Osipov , Cyrill Gorcunov Without this option serpent tries to encode function body, making output a plain mess. So just like for yaml output where functions are represented as | "completion_handler: 'function: 0x4074c910' for lua output we will have | completion_handler = function() --[[..skipped..]] end, Part-of #3834 --- src/box/lua/console.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/src/box/lua/console.lua b/src/box/lua/console.lua index 479046f80..7120bc8e6 100644 --- a/src/box/lua/console.lua +++ b/src/box/lua/console.lua @@ -58,6 +58,7 @@ output_handlers["lua"] = function(status, opts, ...) local serpent_opts = { custom = map_symbols, comment = false, + nocode = true, } if opts == "block" then return serpent.block(..., serpent_opts) -- 2.20.1