From: Kinsey Moore Date: Wed, 8 Oct 2014 18:24:15 +0000 (+0000) Subject: Stasis: Relegate log message to dev-mode X-Git-Tag: 13.0.0-beta3~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b32d8b53172141fe9b799378d108891255cc439c;p=thirdparty%2Fasterisk.git 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. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@424850 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/stasis.c b/main/stasis.c index 27bf1c9008..b85135a5b8 100644 --- a/main/stasis.c +++ b/main/stasis.c @@ -1132,9 +1132,9 @@ struct stasis_topic *stasis_topic_pool_get_topic(struct stasis_topic_pool *pool, 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 */