aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-03-07 19:40:00 +0000
committerMatthew Wild <mwild1@gmail.com>2009-03-07 19:40:00 +0000
commitb657bdb211b25227ea37c9db458ec960b060c0d9 (patch)
treea3a06c2d259ae024c6dffa2bd75e41e4dc57245d
parent8a253c1cc93aa94a1a3782954035720f45e8b96c (diff)
downloadprosody-b657bdb211b25227ea37c9db458ec960b060c0d9.tar.gz
prosody-b657bdb211b25227ea37c9db458ec960b060c0d9.zip
util.logger: Small code tidying :)
-rw-r--r--util/logger.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/logger.lua b/util/logger.lua
index 9969f934..2c8eea30 100644
--- a/util/logger.lua
+++ b/util/logger.lua
@@ -18,7 +18,7 @@ local log_sources = config.get("*", "core", "log_sources");
local getstyle, getstring = require "util.termcolours".getstyle, require "util.termcolours".getstring;
local do_pretty_printing = not os.getenv("WINDIR");
-local find = require "string".find;
+local find = string.find;
local ipairs = ipairs;
module "logger"
@@ -41,8 +41,8 @@ function init(name)
local log_this = false;
for _, source in ipairs(log_sources) do
if find(name, source) then
- log_this = true
- break
+ log_this = true;
+ break;
end
end