@@ -42,7 +42,7 @@ static const char *redirectionio_set_enable(cmd_parms *cmd, void *cfg, const cha
4242static const char * redirectionio_set_project_key (cmd_parms * cmd , void * cfg , const char * arg );
4343static const char * redirectionio_set_logs_enable (cmd_parms * cmd , void * cfg , const char * arg );
4444static const char * redirectionio_set_pass (cmd_parms * cmd , void * cfg , const char * arg );
45- static void redirectionio_apache_log_callback (const char * log_str , const void * data );
45+ static void redirectionio_apache_log_callback (const char * log_str , const void * data , short level );
4646
4747static const command_rec redirectionio_directives [] = {
4848 AP_INIT_TAKE1 ("redirectionio" , redirectionio_set_enable , NULL , OR_ALL , "Enable or disable redirectionio" ),
@@ -721,6 +721,8 @@ static const char *redirectionio_set_pass(cmd_parms *cmd, void *cfg, const char
721721 return NULL ;
722722}
723723
724- static void redirectionio_apache_log_callback (const char * log_str , const void * data ) {
725- ap_log_rerror (APLOG_MARK , APLOG_ERR , 0 , (request_rec * )data , "mod_redirectionio api error: %s" , log_str );
724+ static void redirectionio_apache_log_callback (const char * log_str , const void * data , short level ) {
725+ if (level <= 1 ) {
726+ ap_log_rerror (APLOG_MARK , APLOG_ERR , 0 , (request_rec * )data , "mod_redirectionio api error: %s" , log_str );
727+ }
726728}
0 commit comments