res/stasis: Add CLI commands for displaying/debugging ARI apps
[asterisk/asterisk.git] / res / ari / ari_websockets.c
index 6fe40c6..f1e63d3 100644 (file)
@@ -172,7 +172,9 @@ int ast_ari_websocket_session_write(struct ast_ari_websocket_session *session,
                return -1;
        }
 
+#ifdef AST_DEVMODE
        ast_debug(3, "Examining ARI event (length %u): \n%s\n", (unsigned int) strlen(str), str);
+#endif
        if (ast_websocket_write_string(session->ws_session, str)) {
                ast_log(LOG_NOTICE, "Problem occurred during websocket write, websocket closed\n");
                return -1;