Software /
code /
prosody
Diff
util/debug.lua @ 12250:e157e5c79daa
util.pluginloader: Support for multiple pluginloader instances, and options
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 03 Feb 2022 12:53:19 +0000 |
parent | 11177:37dc2a6144d1 |
child | 12256:8fd3eebb8966 |
line wrap: on
line diff
--- a/util/debug.lua Thu Feb 03 10:02:26 2022 +0100 +++ b/util/debug.lua Thu Feb 03 12:53:19 2022 +0000 @@ -31,7 +31,7 @@ for local_num = 1, math.huge do local name, value; if thread then - name, value = debug.getlocal(thread, level, local_num); + name, value = debug.getlocal(thread, level-1, local_num); else name, value = debug.getlocal(level+1, local_num); end