Skip to content

Commit 2f616e1

Browse files
committed
remove csec agent config, update status log for csec config
1 parent c1981db commit 2f616e1

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

agent/php_minit.c

+8-5
Original file line numberDiff line numberDiff line change
@@ -719,11 +719,14 @@ PHP_MINIT_FUNCTION(newrelic) {
719719
nr_wordpress_minit();
720720
nr_php_set_opcode_handlers();
721721

722-
if (!NR_PHP_PROCESS_GLOBALS(nr_security_agent_enabled) || !NR_PHP_PROCESS_GLOBALS(nr_security_enabled) || NR_PHP_PROCESS_GLOBALS(high_security)) {
723-
nrl_info(NRL_INIT, "New Relic Security is completely disabled by one of the user provided config `newrelic.security.enabled`, `newrelic.security.agent.enabled` or `newrelic.high_security`. Not loading security capabilities.");
724-
nrl_debug(NRL_INIT, "newrelic.security.agent.enabled : %s", NR_PHP_PROCESS_GLOBALS(nr_security_enabled) ? "true" : "false");
725-
nrl_debug(NRL_INIT, "newrelic.security.enabled : %s", NR_PHP_PROCESS_GLOBALS(nr_security_agent_enabled) ? "true" : "false");
726-
nrl_debug(NRL_INIT, "newrelic.high_security : %s", NR_PHP_PROCESS_GLOBALS(high_security) ? "true" : "false");
722+
if (NR_PHP_PROCESS_GLOBALS(nr_security_agent_enabled)
723+
&& NR_PHP_PROCESS_GLOBALS(nr_security_enabled)
724+
&& !NR_PHP_PROCESS_GLOBALS(high_security)) {
725+
nrl_info(
726+
NRL_INIT,
727+
"New Relic Security is enabled by the user provided config "
728+
"`newrelic.security.enabled`, `newrelic.security.agent.enabled` and "
729+
"`newrelic.high_security`. Security capabilities will be loaded.");
727730
}
728731

729732
nrl_debug(NRL_INIT, "MINIT processing done");

0 commit comments

Comments
 (0)