diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-05-05 18:07:13 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-05-05 18:07:13 +0100 |
commit | fefd7ac17a34133e53fb0b0f300331aa4d4e41b4 (patch) | |
tree | e612fefd375ae4dd5d1c9251a8beca76ec321cb9 | |
parent | 1bb376c7864aca6334ac2af63a3d475a8f84cd7b (diff) | |
download | prosody-vault/0.4.1.tar.gz prosody-vault/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
-rw-r--r-- | util/serialization.lua | 3 |
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 |