Skip to content

Commit a4f38df

Browse files
committed
Log value of enabled configuration
1 parent 4c297b7 commit a4f38df

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

agent/native/ext/lifecycle.cpp

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -526,15 +526,19 @@ void elasticApmModuleInit( int moduleType, int moduleNumber )
526526
ELASTIC_APM_CALL_IF_FAILED_GOTO( ensureLoggerInitialConfigIsLatest( tracer ) );
527527
ELASTIC_APM_CALL_IF_FAILED_GOTO( ensureAllComponentsHaveLatestConfig( tracer ) );
528528

529+
config = getTracerCurrentConfigSnapshot( tracer );
530+
529531
ELASTIC_APM_LOG_INFO(
530-
"Custom build (based on version: " PHP_ELASTIC_APM_VERSION ") with "
531-
"- span stack trace disabled by default (stack_trace_min_duration: -1)"
532-
"- WordPress instrumentation disabled by default (ast_process_enabled: false)"
532+
"Custom build based on version: %s."
533+
" Enabled: %s."
534+
" Custom changes: "
535+
"- span stack trace disabled by default (stack_trace_min_duration: -1)"
536+
"- WordPress instrumentation disabled by default (ast_process_enabled: false)"
537+
, PHP_ELASTIC_APM_VERSION
538+
, boolToString(config->enabled)
533539
);
534540
logSupportabilityInfo( logLevel_debug );
535541

536-
config = getTracerCurrentConfigSnapshot( tracer );
537-
538542
if ( ! config->enabled )
539543
{
540544
resultCode = resultSuccess;

0 commit comments

Comments
 (0)