[tarantool-patches] [PATCH 3/5] box/lua/console: Don't serialize function body

Cyrill Gorcunov gorcunov at gmail.com
Wed Jul 24 01:31:11 MSK 2019


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





More information about the Tarantool-patches mailing list