diff options
author | Matthew Wild <mwild1@gmail.com> | 2012-01-13 15:46:36 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2012-01-13 15:46:36 +0000 |
commit | 8eba0e5ebdb9a49deaa9ce2768f07a89854a46d7 (patch) | |
tree | 911dc357b94a787f57d471c66060a43c53baecbe /util/debug.lua | |
parent | b70702ed03c381f5da90f101f7663d511b2e4e8d (diff) | |
download | prosody-8eba0e5ebdb9a49deaa9ce2768f07a89854a46d7.tar.gz prosody-8eba0e5ebdb9a49deaa9ce2768f07a89854a46d7.zip |
util.debug: Adjust level within get_locals_table() to account for the additional depth of this function itself
Diffstat (limited to 'util/debug.lua')
-rw-r--r-- | util/debug.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/util/debug.lua b/util/debug.lua index 22d02bf2..2170a6d1 100644 --- a/util/debug.lua +++ b/util/debug.lua @@ -9,6 +9,7 @@ local censored_names = { }; local function get_locals_table(level) + level = level + 1; -- Skip this function itself local locals = {}; for local_num = 1, math.huge do local name, value = debug.getlocal(level, local_num); |