# HG changeset patch # User Kim Alvefur # Date 1505151132 -7200 # Node ID cda9db4b881d8a7b8fb471860a18a410fc4d9b74 # Parent 325371632fe6ae9d58a752908b1d716216e374f6 loggingmanager, mod_posix: Import util.format correctly (fixes #985) diff -r 325371632fe6 -r cda9db4b881d core/loggingmanager.lua --- a/core/loggingmanager.lua Sun Sep 10 13:13:24 2017 -0400 +++ b/core/loggingmanager.lua Mon Sep 11 19:32:12 2017 +0200 @@ -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 -r 325371632fe6 -r cda9db4b881d plugins/mod_posix.lua --- a/plugins/mod_posix.lua Sun Sep 10 13:13:24 2017 -0400 +++ b/plugins/mod_posix.lua Mon Sep 11 19:32:12 2017 +0200 @@ -20,7 +20,7 @@ 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;