Software /
code /
prosody
Comparison
util/error.lua @ 12975:d10957394a3c
util: Prefix module imports with prosody namespace
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 17 Mar 2023 16:23:16 +0100 |
parent | 11224:8143fd2f138b |
child | 13079:e7a5e5a0dc02 |
comparison
equal
deleted
inserted
replaced
12974:ba409c67353b | 12975:d10957394a3c |
---|---|
1 local id = require "util.id"; | 1 local id = require "prosody.util.id"; |
2 | 2 |
3 local util_debug; -- only imported on-demand | 3 local util_debug; -- only imported on-demand |
4 | 4 |
5 -- Library configuration (see configure()) | 5 -- Library configuration (see configure()) |
6 local auto_inject_traceback = false; | 6 local auto_inject_traceback = false; |
17 | 17 |
18 local function configure(opt) | 18 local function configure(opt) |
19 if opt.auto_inject_traceback ~= nil then | 19 if opt.auto_inject_traceback ~= nil then |
20 auto_inject_traceback = opt.auto_inject_traceback; | 20 auto_inject_traceback = opt.auto_inject_traceback; |
21 if auto_inject_traceback then | 21 if auto_inject_traceback then |
22 util_debug = require "util.debug"; | 22 util_debug = require "prosody.util.debug"; |
23 end | 23 end |
24 end | 24 end |
25 end | 25 end |
26 | 26 |
27 -- Do we want any more well-known fields? | 27 -- Do we want any more well-known fields? |