Author: kmoore
Date: Wed Oct  8 13:24:15 2014
New Revision: 424850

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=424850
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.

Modified:
    branches/13/main/stasis.c

Modified: branches/13/main/stasis.c
URL: 
http://svnview.digium.com/svn/asterisk/branches/13/main/stasis.c?view=diff&rev=424850&r1=424849&r2=424850
==============================================================================
--- branches/13/main/stasis.c (original)
+++ branches/13/main/stasis.c Wed Oct  8 13:24:15 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 */


-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

svn-commits mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/svn-commits

Reply via email to