@@ -581,8 +581,8 @@ static int post_config_hook(apr_pool_t *pconf, apr_pool_t *plog, apr_pool_t *pte
581
581
if (ppid ) {
582
582
ma_parent_pid = atol (ppid );
583
583
ap_log_error (APLOG_MARK , APLOG_DEBUG , 0 , s ,
584
- "[%" APR_PID_T_FMT " - %" APR_PID_T_FMT "] in child post config hook" , getpid () ,
585
- ma_parent_pid );
584
+ "post_config_hook: [%" APR_PID_T_FMT " - %" APR_PID_T_FMT "] in child post config hook" ,
585
+ getpid (), ma_parent_pid );
586
586
return OK ;
587
587
}
588
588
}
@@ -608,7 +608,7 @@ static int post_config_hook(apr_pool_t *pconf, apr_pool_t *plog, apr_pool_t *pte
608
608
rv = ma_group_join (mconf -> ma_advertise_adrs , mconf -> ma_advertise_port , mconf -> ma_bind_adrs , mconf -> ma_bind_port ,
609
609
pconf , s );
610
610
if (rv != APR_SUCCESS ) {
611
- ap_log_error (APLOG_MARK , APLOG_CRIT , rv , s , "mod_advertise : multicast join failed for %s:%d." ,
611
+ ap_log_error (APLOG_MARK , APLOG_CRIT , rv , s , "post_config_hook : multicast join failed for %s:%d." ,
612
612
mconf -> ma_advertise_adrs , mconf -> ma_advertise_port );
613
613
ma_advertise_run = 0 ;
614
614
} else {
@@ -651,23 +651,23 @@ static int post_config_hook(apr_pool_t *pconf, apr_pool_t *plog, apr_pool_t *pte
651
651
rv = apr_parse_addr_port (& mconf -> ma_advertise_srvs , & mconf -> ma_advertise_srvi , & mconf -> ma_advertise_srvp , ptr ,
652
652
pproc );
653
653
if (rv != APR_SUCCESS || !mconf -> ma_advertise_srvs || !mconf -> ma_advertise_srvp ) {
654
- ap_log_error (APLOG_MARK , APLOG_CRIT , rv , s , "mod_advertise : Invalid ServerAdvertise Address %s" , ptr );
654
+ ap_log_error (APLOG_MARK , APLOG_CRIT , rv , s , "post_config_hook : Invalid ServerAdvertise Address %s" , ptr );
655
655
return rv ;
656
656
}
657
657
}
658
658
659
659
/* prevent X-Manager-Address: (null):0 */
660
660
if (!mconf -> ma_advertise_srvs || !mconf -> ma_advertise_srvp ) {
661
661
ap_log_error (APLOG_MARK , APLOG_WARNING , 0 , s ,
662
- "mod_advertise : ServerAdvertise Address or Port not defined, Advertise disabled!!!" );
662
+ "post_config_hook : ServerAdvertise Address or Port not defined, Advertise disabled!!!" );
663
663
return OK ;
664
664
}
665
665
666
666
/* Create parent management thread */
667
667
is_mp_running = 1 ;
668
668
rv = apr_thread_create (& tp , NULL , parent_thread , server , pconf );
669
669
if (rv != APR_SUCCESS ) {
670
- ap_log_error (APLOG_MARK , APLOG_CRIT , rv , s , "mod_advertise : parent apr_thread_create" );
670
+ ap_log_error (APLOG_MARK , APLOG_CRIT , rv , s , "post_config_hook : parent apr_thread_create" );
671
671
return rv ;
672
672
}
673
673
apr_thread_detach (tp );
@@ -678,7 +678,8 @@ static int post_config_hook(apr_pool_t *pconf, apr_pool_t *plog, apr_pool_t *pte
678
678
apr_pool_create (& magd -> cpool , pconf );
679
679
apr_pool_cleanup_register (magd -> cpool , magd , pconfig_cleanup , apr_pool_cleanup_null );
680
680
681
- ap_log_error (APLOG_MARK , APLOG_NOTICE , 0 , s , "Advertise initialized for process %" APR_PID_T_FMT , getpid ());
681
+ ap_log_error (APLOG_MARK , APLOG_NOTICE , 0 , s , "post_config_hook: Advertise initialized for process %" APR_PID_T_FMT ,
682
+ getpid ());
682
683
683
684
apr_pool_cleanup_register (magd -> ppool , magd , process_cleanup , apr_pool_cleanup_null );
684
685
0 commit comments