messages weren't showing up when I had set the debug level
high for just app_queue.c. It's because we were only checking
the global option_debug variable instead of using the awesome
macro which checks both the global and file-specific value
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@141998 65c4cc65-6c06-0410-ace0-fbb531ad65f3
@ -781,14 +781,12 @@ static int handle_statechange(void *datap)
AST_LIST_UNLOCK(&interfaces);
if(!curint){
if(option_debug>2)
ast_log(LOG_DEBUG,"Device '%s/%s' changed to state '%d' (%s) but we don't care because they're not a member of any queue.\n",technology,loc,sc->state,devstate2str(sc->state));
ast_debug(3,"Device '%s/%s' changed to state '%d' (%s) but we don't care because they're not a member of any queue.\n",technology,loc,sc->state,devstate2str(sc->state));
ast_free(sc);
return0;
}
if(option_debug)
ast_log(LOG_DEBUG,"Device '%s/%s' changed to state '%d' (%s)\n",technology,loc,sc->state,devstate2str(sc->state));
ast_debug(1,"Device '%s/%s' changed to state '%d' (%s)\n",technology,loc,sc->state,devstate2str(sc->state));
update_status(sc->dev,sc->state);
ast_free(sc);
@ -2321,8 +2319,7 @@ static int ring_one(struct queue_ent *qe, struct callattempt *outgoing, int *bus
/* If we have timed out, break out */
if(qe->expire&&(time(NULL)>=qe->expire)){
if(option_debug)
ast_log(LOG_DEBUG,"Queue timed out while ringing members.\n");
ast_debug(1,"Queue timed out while ringing members.\n");