Software /
code /
clix
Diff
clix.lua @ 7:6078e8d2b59d
clix: Enable global Verse logger when verbose is enabled
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 07 Jan 2010 02:05:16 +0000 |
parent | 5:7209e1f8e66b |
child | 8:df4cb4a73549 |
line wrap: on
line diff
--- a/clix.lua Wed Jan 06 18:25:42 2010 +0000 +++ b/clix.lua Thu Jan 07 02:05:16 2010 +0000 @@ -57,7 +57,7 @@ io.stderr:write("The specified account (", opts.account or "default", ") wasn't found in the config file\n"); return nil; end - verse.set_logger(function () end); + verse.set_logger(opts.verbose and print or function () end); local conn = verse.new(verse.logger()); conn.log.debug = opts.verbose; conn:hook("authentication-failure", function (err)