diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-07-23 14:21:41 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-07-23 14:21:41 +0000 |
commit | 70476ea4aa859c8bca7596bc6a2b6a7d5b7277a4 (patch) | |
tree | 22b55dad3a34eb447cb5783333e6ebad3bec22ce /main/asterisk.c | |
parent | 9be597bb661434bfd781acfd4d7166a72c43bcbe (diff) |
(closes issue #10192)
Reported by: bbryant
Patches:
20070720__core_debug_by_file.patch uploaded by bbryant (license 36)
(with some modifications by me)
Tested by: russell, bbryant
This set of changes introduces the ability to set the core debug or verbose
levels on a per-file basis. Interestingly enough, in 1.4, you have the ability
to set core debug for a single file, but that functionality was accidentally
lost in the conversion of the CLI commands to the new format.
This patch improves upon what was in 1.4 by letting you set it for more than 1
file, and by also supporting verbose.
*** Janitor Project ***
This patch also introduces a new macro, ast_verb(), which is similar
to ast_debug(). Setting the per file verbose value only works for messages that
use this macro. Converting existing uses of ast_verbose() can be done like:
if (option_debug > 2)
ast_verbose(VERBOSE_PREFIX_3 "Something useful\n");
...
ast_verb(3, "Something useful\n");
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76555 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/asterisk.c')
-rw-r--r-- | main/asterisk.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/main/asterisk.c b/main/asterisk.c index 56c588985..7f998123f 100644 --- a/main/asterisk.c +++ b/main/asterisk.c @@ -163,7 +163,6 @@ struct ast_flags ast_options = { AST_DEFAULT_OPTIONS }; int option_verbose; /*!< Verbosity level */ int option_debug; /*!< Debug level */ - double option_maxload; /*!< Max load avg on system */ int option_maxcalls; /*!< Max number of active calls */ int option_maxfiles; /*!< Max number of open file handles (files, sockets) */ @@ -174,7 +173,6 @@ long option_minmemfree; /*!< Minimum amount of free system memory - stop acce /*! @} */ char record_cache_dir[AST_CACHE_DIR_LEN] = AST_TMP_DIR; -char debug_filename[AST_FILENAME_MAX] = ""; static int ast_socket = -1; /*!< UNIX Socket for allowing remote control */ static int ast_consock = -1; /*!< UNIX Socket for controlling another asterisk */ |