Software /
code /
verse
Comparison
init.lua @ 141:15706f6492ae
verse: Fix set_logger() to set verse.log() correctly
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 15 Sep 2010 16:51:17 +0100 |
parent | 135:8adf5fb27ce3 |
child | 142:ea753bc81a33 |
comparison
equal
deleted
inserted
replaced
140:97bf22d6ff96 | 141:15706f6492ae |
---|---|
29 | 29 |
30 verse.logger = logger.init; | 30 verse.logger = logger.init; |
31 verse.log = verse.logger("verse"); | 31 verse.log = verse.logger("verse"); |
32 | 32 |
33 function verse.set_logger(logger) | 33 function verse.set_logger(logger) |
34 verse.log = logger("verse"); | 34 verse.log = logger; |
35 server.setlogger(logger); | 35 server.setlogger(logger); |
36 end | 36 end |
37 | 37 |
38 local function error_handler(err) | 38 local function error_handler(err) |
39 verse.log("error", "Error: %s", err); | 39 verse.log("error", "Error: %s", err); |