Changeset

43:1ec64b321834

clix.lua: Filter all log messages except those of the 'error' level unless -v is given
author Matthew Wild <mwild1@gmail.com>
date Wed, 15 Sep 2010 16:53:32 +0100
parents 42:4f4fe532a889
children 44:3c3cc6d75814
files clix.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/clix.lua	Wed Sep 15 16:40:14 2010 +0100
+++ b/clix.lua	Wed Sep 15 16:53:32 2010 +0100
@@ -58,7 +58,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(opts.verbose and verse.logger() or function () end);
+	verse.set_logger(opts.verbose and verse.logger() or verse.filter_log({"error"}, verse.logger()));
 	local conn = verse.new(verse.logger());
 	for _, plugin in ipairs(plugins or {}) do
 		conn:add_plugin(plugin);