From 7248a47143f59cddccebf04bda2149504f6b655d Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Mon, 23 Jan 2023 11:25:29 +0100 Subject: [PATCH] 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 --- src/etc/inc/plugins.inc | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/etc/inc/plugins.inc b/src/etc/inc/plugins.inc index 4b2b17280..22f828ac9 100644 --- a/src/etc/inc/plugins.inc +++ b/src/etc/inc/plugins.inc @@ -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)) {