summaryrefslogtreecommitdiff
path: root/addons/res_config_mysql.c
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2011-11-29 18:43:16 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2011-11-29 18:43:16 +0000
commit77b670c4ab62db2fa2386e15aa6ae4860bb401c9 (patch)
treefba9c5d22c4c3dea695dac6c51a49316f6381b4d /addons/res_config_mysql.c
parentd7dec4f14fc018d18ed480358f9a265b81b230b9 (diff)
Allow each logging destination and console to have its own notion of the verbosity level.
Review: https://reviewboard.asterisk.org/r/1599 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@346391 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'addons/res_config_mysql.c')
-rw-r--r--addons/res_config_mysql.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/addons/res_config_mysql.c b/addons/res_config_mysql.c
index d393de6c1..f011e0d72 100644
--- a/addons/res_config_mysql.c
+++ b/addons/res_config_mysql.c
@@ -1379,8 +1379,7 @@ static int load_module(void)
parse_config(0);
ast_config_engine_register(&mysql_engine);
- if (option_verbose > 1)
- ast_verbose(VERBOSE_PREFIX_2 "MySQL RealTime driver loaded.\n");
+ ast_verb(2, "MySQL RealTime driver loaded.\n");
ast_cli_register_multiple(cli_realtime_mysql_status, sizeof(cli_realtime_mysql_status) / sizeof(struct ast_cli_entry));
return 0;
}
@@ -1392,8 +1391,7 @@ static int unload_module(void)
ast_cli_unregister_multiple(cli_realtime_mysql_status, sizeof(cli_realtime_mysql_status) / sizeof(struct ast_cli_entry));
ast_config_engine_deregister(&mysql_engine);
- if (option_verbose > 1)
- ast_verbose(VERBOSE_PREFIX_2 "MySQL RealTime unloaded.\n");
+ ast_verb(2, "MySQL RealTime unloaded.\n");
ast_module_user_hangup_all();