From 18711c04c9e6fc6056f79f05598719a112ecbba5 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Tue, 10 Oct 2017 12:12:10 +0200 Subject: Make the `simulation` mode logs more obvious --- src/sp_utils.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/sp_utils.c') diff --git a/src/sp_utils.c b/src/sp_utils.c index f696a55..0ddc024 100644 --- a/src/sp_utils.c +++ b/src/sp_utils.c @@ -231,14 +231,14 @@ void sp_log_disable(const char* restrict path, const char* restrict arg_name, const int sim = config_node->simulation; if (arg_name) { if (alias) { - sp_log_msg("disabled_function", sim?SP_LOG_NOTICE:SP_LOG_DROP, + sp_log_msg("disabled_function", sim?SP_LOG_SIMULATION:SP_LOG_DROP, "The call to the function '%s' in %s:%d has been disabled, " "because its argument '%s' content (%s) matched the rule '%s'.", path, zend_get_executed_filename(TSRMLS_C), zend_get_executed_lineno(TSRMLS_C), arg_name, arg_value?arg_value:"?", alias); } else { - sp_log_msg("disabled_function", sim?SP_LOG_NOTICE:SP_LOG_DROP, + sp_log_msg("disabled_function", sim?SP_LOG_SIMULATION:SP_LOG_DROP, "The call to the function '%s' in %s:%d has been disabled, " "because its argument '%s' content (%s) matched a rule.", path, zend_get_executed_filename(TSRMLS_C), @@ -247,13 +247,13 @@ void sp_log_disable(const char* restrict path, const char* restrict arg_name, } } else { if (alias) { - sp_log_msg("disabled_function", sim?SP_LOG_NOTICE:SP_LOG_DROP, + sp_log_msg("disabled_function", sim?SP_LOG_SIMULATION:SP_LOG_DROP, "The call to the function '%s' in %s:%d has been disabled, " "because of the the rule '%s'.",path, zend_get_executed_filename(TSRMLS_C), zend_get_executed_lineno(TSRMLS_C), alias); } else { - sp_log_msg("disabled_function", sim?SP_LOG_NOTICE:SP_LOG_DROP, + sp_log_msg("disabled_function", sim?SP_LOG_SIMULATION:SP_LOG_DROP, "The call to the function '%s' in %s:%d has been disabled.", path, zend_get_executed_filename(TSRMLS_C), zend_get_executed_lineno(TSRMLS_C)); @@ -271,13 +271,13 @@ void sp_log_disable_ret(const char* restrict path, const char* alias = config_node->alias; const int sim = config_node->simulation; if (alias) { - sp_log_msg("disabled_function", sim?SP_LOG_NOTICE:SP_LOG_DROP, + sp_log_msg("disabled_function", sim?SP_LOG_SIMULATION:SP_LOG_DROP, "The execution has been aborted in %s:%d, " "because the function '%s' returned '%s', which matched the rule '%s'.", zend_get_executed_filename(TSRMLS_C), zend_get_executed_lineno(TSRMLS_C), path, ret_value?ret_value:"?", alias); } else { - sp_log_msg("disabled_function", sim?SP_LOG_NOTICE:SP_LOG_DROP, + sp_log_msg("disabled_function", sim?SP_LOG_SIMULATION:SP_LOG_DROP, "The execution has been aborted in %s:%d, " "because the return value (%s) of the function '%s' matched a rule.", zend_get_executed_filename(TSRMLS_C), -- cgit v1.3