From 35717a1e41b6b9364adfb4a6de39418f0f241f57 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Mon, 11 Sep 2017 19:32:12 +0200 Subject: loggingmanager, mod_posix: Import util.format correctly (fixes #985) --- core/loggingmanager.lua | 2 +- plugins/mod_posix.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/loggingmanager.lua b/core/loggingmanager.lua index 2e9590fe..3d469bed 100644 --- a/core/loggingmanager.lua +++ b/core/loggingmanager.lua @@ -7,7 +7,7 @@ -- -- luacheck: globals log prosody.log -local format = require "util.format"; +local format = require "util.format".format; local setmetatable, rawset, pairs, ipairs, type = setmetatable, rawset, pairs, ipairs, type; local stdout = io.stdout; diff --git a/plugins/mod_posix.lua b/plugins/mod_posix.lua index b2984add..fccc7a2b 100644 --- a/plugins/mod_posix.lua +++ b/plugins/mod_posix.lua @@ -20,7 +20,7 @@ if not have_signal then module:log("warn", "Couldn't load signal library, won't respond to SIGTERM"); end -local format = require "util.format"; +local format = require "util.format".format; local lfs = require "lfs"; local stat = lfs.attributes; -- cgit v1.2.3