Changeset

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
parents 6:0ec2fd06a962
children 8:df4cb4a73549
files clix.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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)