plugins_run: remove logging from lugins_runb as it doesn't really seem to be ading much more than noise (current only user is return_gateways_status()). ref https://forum.opnsense.org/index.php?topic=31560.0

This commit is contained in:
Ad Schellevis 2023-01-23 11:25:29 +01:00
parent d8ddc0b554
commit 7248a47143

View File

@ -304,8 +304,6 @@ function plugins_run($hook, $args = [])
{
$ret = [];
log_msg(sprintf('plugins_run %s (%s)', $hook, implode(',', $args)), LOG_INFO);
foreach (plugins_scan() as $name => $path) {
try {
include_once $path;
@ -333,12 +331,6 @@ function plugins_run($hook, $args = [])
if ($argc > count($args)) {
$argc = count($args);
}
log_msg(sprintf(
'plugins_run %s (execute task : %s(%s))',
$hook,
$argf,
implode(',', array_slice($args, 0, $argc))
), LOG_DEBUG);
try {
$result = call_user_func_array($argf, array_slice($args, 0, $argc));
if (!empty($result)) {