[VOL-3199] Added support for dynamic enable/disable of Trace Publishing

Change-Id: I920b2964c89ad823985da29d7f8279689a62d3b6
diff --git a/rw_core/main.go b/rw_core/main.go
index 98d3985..35472e5 100644
--- a/rw_core/main.go
+++ b/rw_core/main.go
@@ -141,7 +141,7 @@
 	// Add the probe to the context to pass to all the services started
 	probeCtx := context.WithValue(ctx, probe.ProbeContextKey, p)
 
-	closer, err := log.InitTracingAndLogCorrelation(cf.TraceEnabled, cf.TraceAgentAddress, cf.LogCorrelationEnabled)
+	closer, err := log.GetGlobalLFM().InitTracingAndLogCorrelation(cf.TraceEnabled, cf.TraceAgentAddress, cf.LogCorrelationEnabled)
 	if err != nil {
 		logger.Warnw(ctx, "unable-to-initialize-tracing-and-log-correlation-module", log.Fields{"error": err})
 	} else {