[asterisk-commits] wedhorn: trunk r417193 - /trunk/channels/chan_skinny.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jun 24 19:45:14 CDT 2014


Author: wedhorn
Date: Tue Jun 24 19:45:07 2014
New Revision: 417193

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=417193
Log:
Skinny: cleanup some log messages around sessions.

Modified:
    trunk/channels/chan_skinny.c

Modified: trunk/channels/chan_skinny.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/chan_skinny.c?view=diff&rev=417193&r1=417192&r2=417193
==============================================================================
--- trunk/channels/chan_skinny.c (original)
+++ trunk/channels/chan_skinny.c Tue Jun 24 19:45:07 2014
@@ -7403,6 +7403,7 @@
 		break;
 	case UNREGISTER_MESSAGE:
 		SKINNY_DEBUG(DEBUG_PACKET, 3, "Received UNREGISTER_MESSAGE from %s\n", d->name);
+		ast_log(LOG_NOTICE, "Received UNREGISTER_MESSAGE from %s\n", d->name);
 		end_session(s);
 		break;
 	case SOFT_KEY_TEMPLATE_REQ_MESSAGE:
@@ -7470,7 +7471,7 @@
 	struct skinny_line *l;
 	struct skinny_speeddial *sd;
 
-	ast_verb(3, "Ending Skinny session from %s at %s\n", d ? d->name : "unknown", ast_inet_ntoa(s->sin.sin_addr));
+	ast_log(LOG_NOTICE, "Ending Skinny session from %s at %s\n", d ? d->name : "unknown", ast_inet_ntoa(s->sin.sin_addr));
 
 	if (s->lockstate) {
 		ast_mutex_unlock(&s->lock);
@@ -7524,11 +7525,11 @@
 	struct pollfd fds[1];
 
 	if (!s) {
-		ast_verb(3, "Bad Skinny Session\n");
+		ast_log(LOG_WARNING, "Bad Skinny Session\n");
 		return 0;
 	}
 
-	ast_verb(3, "Starting Skinny session from %s\n", ast_inet_ntoa(s->sin.sin_addr));
+	ast_log(LOG_NOTICE, "Starting Skinny session from %s\n", ast_inet_ntoa(s->sin.sin_addr));
 
 	pthread_cleanup_push(skinny_session_cleanup, s);
 
@@ -7635,7 +7636,7 @@
 		}
 	}
 
-	ast_debug(3, "Skinny Session returned: %s\n", strerror(errno));
+	ast_log(LOG_NOTICE, "Skinny Session returned: %s\n", strerror(errno));
 	if (req) {
 		ast_free(req);
 	}




More information about the asterisk-commits mailing list