From 0c0ce17bc021c2f48847047065730b834de3bf0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Chmielowski?= Date: Fri, 8 Apr 2016 11:36:15 +0200 Subject: [PATCH] Add ability to configure server loglevel when running tests --- test/ejabberd_SUITE_data/ejabberd.yml | 2 +- test/suite.erl | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/test/ejabberd_SUITE_data/ejabberd.yml b/test/ejabberd_SUITE_data/ejabberd.yml index bd7f958d3..869c24c7a 100644 --- a/test/ejabberd_SUITE_data/ejabberd.yml +++ b/test/ejabberd_SUITE_data/ejabberd.yml @@ -424,7 +424,7 @@ listen: port: @@web_port@@ module: ejabberd_http captcha: true -loglevel: 4 +loglevel: @@loglevel@@ max_fsm_queue: 1000 modules: mod_adhoc: [] diff --git a/test/suite.erl b/test/suite.erl index 8000e1d29..f37b51ea6 100644 --- a/test/suite.erl +++ b/test/suite.erl @@ -31,6 +31,7 @@ init_config(Config) -> {ok, CfgContentTpl} = file:read_file(ConfigPathTpl), CfgContent = process_config_tpl(CfgContentTpl, [ {c2s_port, 5222}, + {loglevel, 4}, {s2s_port, 5269}, {web_port, 5280}, {mysql_server, <<"localhost">>},