diff options
author | Mark Michelson <mmichelson@digium.com> | 2007-12-14 18:47:44 +0000 |
---|---|---|
committer | Mark Michelson <mmichelson@digium.com> | 2007-12-14 18:47:44 +0000 |
commit | 4f75e15665f18da26ee14188ffdfda343986b6cc (patch) | |
tree | 4621fc48e6679b15b0f506ef023841d19e3abc48 /main/logger.c | |
parent | f5a9e958d1c3b0244f01a88e82209d76b60c4bd3 (diff) |
After reading Russell's e-mail to the dev list stating that checking option_verbose is not
equivalent to the check done by ast_verb, I wrote a macro, VERBOSITY_LEVEL, which does this
check. I did a quick look in the source and used this macro in some places where option_verbose
was used.
I also converted some verbose messages in logger.c to use ast_verb instead of ast_verbose.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@93042 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/logger.c')
-rw-r--r-- | main/logger.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/main/logger.c b/main/logger.c index a1769f2e7..c82862e6b 100644 --- a/main/logger.c +++ b/main/logger.c @@ -586,8 +586,7 @@ static int reload_logger(int rotate) eventlog = fopen(old, "a"); if (eventlog) { ast_log(LOG_EVENT, "Restarted Asterisk Event Logger\n"); - if (option_verbose) - ast_verbose("Asterisk Event Logger restarted\n"); + ast_verb(1, "Asterisk Event Logger restarted\n"); } else { ast_log(LOG_ERROR, "Unable to create event log: %s\n", strerror(errno)); res = -1; @@ -605,8 +604,7 @@ static int reload_logger(int rotate) ast_queue_log("NONE", "NONE", "NONE", "CONFIGRELOAD", "%s", ""); AST_RWLIST_WRLOCK(&logchannels); ast_log(LOG_EVENT, "Restarted Asterisk Queue Logger\n"); - if (option_verbose) - ast_verbose("Asterisk Queue Logger restarted\n"); + ast_verb(1, "Asterisk Queue Logger restarted\n"); } else { ast_log(LOG_ERROR, "Unable to create queue log: %s\n", strerror(errno)); res = -1; |