controller: Add parameter for maximum log level to initiate/terminate_*()

Previously, the logger installed by the controller always announced
LEVEL_PRIVATE(4), which produced completely useless logging calls with
the common clients (vici/stroke) whose default log level is LEVEL_CTRL(1).
This can produce quite some overhead if there are e.g. a lot of concurrent
initiate() calls.
This commit is contained in:
Tobias Brunner committed 2023-04-27 13:52:34 +02:00
1 parent 77b9f3abb0
commit d96d15b588
18 files changed
+60 -46

No files matched your search

@@ -440,7 +440,7 @@ CALLBACK(terminate, job_requeue_t,
uint32_t *id)
{
charon->controller->terminate_ike(charon->controller, *id, FALSE,
controller_cb_empty, NULL, 0);
controller_cb_empty, NULL, LEVEL_SILENT, 0);
return JOB_REQUEUE_NONE;
}