From: Cyrill Gorcunov <gorcunov@gmail.com> To: tml <tarantool-patches@freelists.org> Cc: Alexander Turenko <alexander.turenko@tarantool.org>, Kirill Yukhin <kyukhin@tarantool.org>, Konstantin Osipov <kostja@tarantool.org>, Cyrill Gorcunov <gorcunov@gmail.com> Subject: [tarantool-patches] [PATCH 3/5] box/lua/console: Don't serialize function body Date: Wed, 24 Jul 2019 01:31:11 +0300 [thread overview] Message-ID: <20190723223113.16084-4-gorcunov@gmail.com> (raw) In-Reply-To: <20190723223113.16084-1-gorcunov@gmail.com> 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
next prev parent reply other threads:[~2019-07-23 22:31 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-07-23 22:31 [tarantool-patches] [PATCH v4 0/5] box/lua/console: Add initial support for lua output format Cyrill Gorcunov 2019-07-23 22:31 ` [tarantool-patches] [PATCH 1/5] third_party/serpent: Add serpent repo Cyrill Gorcunov 2019-07-24 17:02 ` [tarantool-patches] " Konstantin Osipov 2019-07-24 17:33 ` Cyrill Gorcunov 2019-07-23 22:31 ` [tarantool-patches] [PATCH 2/5] box/lua/console: Add support for lua output format Cyrill Gorcunov 2019-07-23 22:31 ` Cyrill Gorcunov [this message] 2019-07-23 22:31 ` [tarantool-patches] [PATCH 4/5] box/lua/console: Provide output_default function to setup default output Cyrill Gorcunov 2019-07-24 17:10 ` [tarantool-patches] " Konstantin Osipov 2019-07-24 17:11 ` Konstantin Osipov 2019-07-24 17:34 ` Cyrill Gorcunov 2019-07-23 22:31 ` [tarantool-patches] [PATCH 5/5] box/lua/console: Limit lua output for local sessions only Cyrill Gorcunov 2019-07-24 17:15 ` [tarantool-patches] " Konstantin Osipov 2019-07-24 17:35 ` Cyrill Gorcunov 2019-07-24 17:00 ` [tarantool-patches] Re: [PATCH v4 0/5] box/lua/console: Add initial support for lua output format Konstantin Osipov
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20190723223113.16084-4-gorcunov@gmail.com \ --to=gorcunov@gmail.com \ --cc=alexander.turenko@tarantool.org \ --cc=kostja@tarantool.org \ --cc=kyukhin@tarantool.org \ --cc=tarantool-patches@freelists.org \ --subject='Re: [tarantool-patches] [PATCH 3/5] box/lua/console: Don'\''t serialize function body' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox