Changeset

12984:f08125a8be34

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.
author Kim Alvefur <zash@zash.se>
date Sun, 26 Mar 2023 00:33:20 +0100
parents 12983:4533c9b906b0
children 12985:c0e3e0d79574
files util/format.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;
 });