From 9bbfb849b1efe753e4d5c7ae56f3b54f0e0827f6 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 26 Mar 2023 00:33:20 +0100 Subject: util.format: Restore "freeze" serialization behavior in logging This was implied with the "debug" preset and does nice things like turn util.set objects into "set{a,b,c}" instead of the quite verbose thing you get otherwise. --- util/format.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'util') diff --git a/util/format.lua b/util/format.lua index e07f5f2f..f95f0575 100644 --- a/util/format.lua +++ b/util/format.lua @@ -15,6 +15,7 @@ local dump = require"prosody.util.serialization".new({ fallback = function(v, why) return "_[[" .. (why or tostring(v)) .. "]] "; end; + freeze = true; fatal = false; maxdepth = 5; }); -- cgit v1.2.3