Comparison

util/helpers.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 11059:ad89e3cc67b6
comparison
equal deleted inserted replaced
12974:ba409c67353b 12975:d10957394a3c
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 debug = require "util.debug"; 9 local debug = require "prosody.util.debug";
10 10
11 -- Helper functions for debugging 11 -- Helper functions for debugging
12 12
13 local log = require "util.logger".init("util.debug"); 13 local log = require "prosody.util.logger".init("util.debug");
14 14
15 local function log_events(events, name, logger) 15 local function log_events(events, name, logger)
16 local f = events.fire_event; 16 local f = events.fire_event;
17 if not f then 17 if not f then
18 error("Object does not appear to be a util.events object"); 18 error("Object does not appear to be a util.events object");