aboutsummaryrefslogtreecommitdiffstats
path: root/util/serialization.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-05-05 18:07:13 +0100
committerMatthew Wild <mwild1@gmail.com>2009-05-05 18:07:13 +0100
commitfefd7ac17a34133e53fb0b0f300331aa4d4e41b4 (patch)
treee612fefd375ae4dd5d1c9251a8beca76ec321cb9 /util/serialization.lua
parent1bb376c7864aca6334ac2af63a3d475a8f84cd7b (diff)
downloadprosody-0.4.1.tar.gz
prosody-0.4.1.zip
util.serialization: Write nil for non-serializable data types, and bump the log level to 'error'vault/0.4.10.4.1
Diffstat (limited to 'util/serialization.lua')
-rw-r--r--util/serialization.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/serialization.lua b/util/serialization.lua
index 41d963e9..4da811ae 100644
--- a/util/serialization.lua
+++ b/util/serialization.lua
@@ -52,7 +52,8 @@ local function _simplesave(o, ind, t, func)
elseif type(o) == "boolean" then
func(t, (o and "true" or "false"));
else
- log("warn", "cannot serialize a %s: %s", type(o), debug_traceback())
+ log("error", "cannot serialize a %s: %s", type(o), debug_traceback())
+ func(t, "nil,\n");
end
end