Management framework: log the controller's startup deployment attempt

The controller now logs its deployment attempt of a persisted configuration at
startup. This is generally helpful to see recorded, and also explains timeout of
the underlying request in case of failure (which triggers a timeout message).
This commit is contained in:
Christian Kreibich 2022-06-22 16:32:52 -07:00
parent 05447c413f
commit d994f33636

View file

@ -1366,6 +1366,8 @@ event zeek_init()
{ {
local req = Management::Request::create(); local req = Management::Request::create();
req$deploy_state = DeployState($config=g_configs[DEPLOYED], $is_internal=T); req$deploy_state = DeployState($config=g_configs[DEPLOYED], $is_internal=T);
Management::Log::info(fmt("deploying persisted configuration %s, request %s",
g_configs[DEPLOYED]$id, req$id));
deploy(req); deploy(req);
} }
} }