diff options
author | Kim Alvefur <zash@zash.se> | 2023-03-26 00:33:20 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2023-03-26 00:33:20 +0100 |
commit | 9bbfb849b1efe753e4d5c7ae56f3b54f0e0827f6 (patch) | |
tree | 143f894f004f17eeadace5cad1b8c366a614a1d6 | |
parent | 328447c2b1cb81e68b64aeb5b5d1931fabfb178f (diff) | |
download | prosody-9bbfb849b1efe753e4d5c7ae56f3b54f0e0827f6.tar.gz prosody-9bbfb849b1efe753e4d5c7ae56f3b54f0e0827f6.zip |
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.
-rw-r--r-- | util/format.lua | 1 |
1 files changed, 1 insertions, 0 deletions
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; }); |