Comparison

core/loggingmanager.lua @ 12972:ead41e25ebc0

core: Prefix module imports with prosody namespace
author Kim Alvefur <zash@zash.se>
date Fri, 17 Mar 2023 16:23:07 +0100
parent 12247:dcad8940f072
comparison
equal deleted inserted replaced
12971:7214baed9e9d 12972:ead41e25ebc0
4 -- 4 --
5 -- This project is MIT/X11 licensed. Please see the 5 -- This project is MIT/X11 licensed. Please see the
6 -- COPYING file in the source package for more information. 6 -- COPYING file in the source package for more information.
7 -- 7 --
8 8
9 local format = require "util.format".format; 9 local format = require "prosody.util.format".format;
10 local setmetatable, rawset, pairs, ipairs, type = 10 local setmetatable, rawset, pairs, ipairs, type =
11 setmetatable, rawset, pairs, ipairs, type; 11 setmetatable, rawset, pairs, ipairs, type;
12 local stdout = io.stdout; 12 local stdout = io.stdout;
13 local io_open = io.open; 13 local io_open = io.open;
14 local math_max, rep = math.max, string.rep; 14 local math_max, rep = math.max, string.rep;
15 local os_date = os.date; 15 local os_date = os.date;
16 local getstyle, getstring = require "util.termcolours".getstyle, require "util.termcolours".getstring; 16 local getstyle, getstring = require "prosody.util.termcolours".getstyle, require "prosody.util.termcolours".getstring;
17 local st = require "util.stanza"; 17 local st = require "prosody.util.stanza";
18 18
19 local config = require "core.configmanager"; 19 local config = require "prosody.core.configmanager";
20 local logger = require "util.logger"; 20 local logger = require "prosody.util.logger";
21 21
22 local have_pposix, pposix = pcall(require, "util.pposix"); 22 local have_pposix, pposix = pcall(require, "prosody.util.pposix");
23 have_pposix = have_pposix and pposix._VERSION == "0.4.0"; 23 have_pposix = have_pposix and pposix._VERSION == "0.4.0";
24 24
25 local _ENV = nil; 25 local _ENV = nil;
26 -- luacheck: std none 26 -- luacheck: std none
27 27