util.format: Restore "freeze" serialization behavior in logging
authorKim Alvefur <zash@zash.se>
Sun, 26 Mar 2023 00:33:20 +0100
changeset 12988 f08125a8be34
parent 12987 4533c9b906b0
child 12989 c0e3e0d79574
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
--- a/util/format.lua	Sun Mar 26 00:18:05 2023 +0100
+++ b/util/format.lua	Sun Mar 26 00:33:20 2023 +0100
@@ -15,6 +15,7 @@
 	fallback = function(v, why)
 		return "_[[" .. (why or tostring(v)) .. "]] ";
 	end;
+	freeze = true;
 	fatal = false;
 	maxdepth = 5;
 });