Software /
code /
prosody
Diff
util/sqlite3.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 | 12872:a20923f7d5fd |
child | 13145:af251471d5ae |
line wrap: on
line diff
--- a/util/sqlite3.lua Fri Mar 17 16:23:12 2023 +0100 +++ b/util/sqlite3.lua Fri Mar 17 16:23:16 2023 +0100 @@ -9,14 +9,14 @@ local t_concat = table.concat; local t_insert = table.insert; local s_char = string.char; -local log = require "util.logger".init("sql"); +local log = require "prosody.util.logger".init("sql"); local lsqlite3 = require "lsqlite3"; local build_url = require "socket.url".build; local ROW, DONE = lsqlite3.ROW, lsqlite3.DONE; -- from sqlite3.h, no copyright claimed -local sqlite_errors = require"util.error".init("util.sqlite3", { +local sqlite_errors = require"prosody.util.error".init("util.sqlite3", { -- FIXME xmpp error conditions? [1] = { code = 1; type = "modify"; condition = "ERROR"; text = "Generic error" }; [2] = { code = 2; type = "cancel"; condition = "INTERNAL"; text = "Internal logic error in SQLite" };