[asterisk-commits] kmoore: trunk r424851 - in /trunk: ./ main/stasis.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Oct 8 13:24:49 CDT 2014


Author: kmoore
Date: Wed Oct  8 13:24:47 2014
New Revision: 424851

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=424851
Log:
Stasis: Relegate log message to dev-mode

This error message primarily applies to development tasks and will now
only show up when dev-mode is enabled via configure.
........

Merged revisions 424850 from http://svn.asterisk.org/svn/asterisk/branches/13

Modified:
    trunk/   (props changed)
    trunk/main/stasis.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-13-merged' - no diff available.

Modified: trunk/main/stasis.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/stasis.c?view=diff&rev=424851&r1=424850&r2=424851
==============================================================================
--- trunk/main/stasis.c (original)
+++ trunk/main/stasis.c Wed Oct  8 13:24:47 2014
@@ -1132,9 +1132,9 @@
 
 void stasis_log_bad_type_access(const char *name)
 {
-	if (!stasis_message_type_declined(name)) {
-		ast_log(LOG_ERROR, "Use of %s() before init/after destruction\n", name);
-	}
+#ifdef AST_DEVMODE
+	ast_log(LOG_ERROR, "Use of %s() before init/after destruction\n", name);
+#endif
 }
 
 /*! \brief A multi object blob data structure to carry user event stasis messages */




More information about the asterisk-commits mailing list