[asterisk-commits] bweschke: branch bweschke/eventq-sanity-checks
r58471 - /team/bweschke/eventq...
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Thu Mar 8 12:47:28 MST 2007
Author: bweschke
Date: Thu Mar 8 13:47:27 2007
New Revision: 58471
URL: http://svn.digium.com/view/asterisk?view=rev&rev=58471
Log:
Start gathering some debug information... to start.
Modified:
team/bweschke/eventq-sanity-checks/main/manager.c
Modified: team/bweschke/eventq-sanity-checks/main/manager.c
URL: http://svn.digium.com/view/asterisk/team/bweschke/eventq-sanity-checks/main/manager.c?view=diff&rev=58471&r1=58470&r2=58471
==============================================================================
--- team/bweschke/eventq-sanity-checks/main/manager.c (original)
+++ team/bweschke/eventq-sanity-checks/main/manager.c Thu Mar 8 13:47:27 2007
@@ -2183,8 +2183,12 @@
for (;;) {
time(&now);
+ if (option_debug > 2)
+ ast_log(LOG_DEBUG, "Doing Manager Session / Event Cleanup.\n");
AST_LIST_LOCK(&sessions);
AST_LIST_TRAVERSE_SAFE_BEGIN(&sessions, s, list) {
+ if (option_debug > 2)
+ ast_log(LOG_DEBUG, "Manager connection: %s\n", s->username);
if (s->sessiontimeout && (now > s->sessiontimeout) && !s->inuse) {
AST_LIST_REMOVE_CURRENT(&sessions, list);
if (s->authenticated && (option_verbose > 1) && displayconnects) {
@@ -2204,6 +2208,8 @@
master_eventq = master_eventq->next;
free(eqe);
}
+ if (option_debug > 2)
+ ast_log(LOG_DEBUG, "Num sessions after cleanup: %d\n", num_sessions);
AST_LIST_UNLOCK(&sessions);
if (s)
ast_atomic_fetchadd_int(&num_sessions, -1);
More information about the asterisk-commits
mailing list