diff --git a/main/stasis.c b/main/stasis.c
index 27bf1c9008c41beff82c9290d2c0805fd9d854bb..b85135a5b828e5c82cb72ae029859cd753a64990 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 */