mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 09:34:39 +00:00
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:
parent
d8ddc0b554
commit
7248a47143
@ -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)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user