From c9c667bbf237c5421f01bf68f3f81ccfc9ed59f0 Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Wed, 11 Mar 2020 12:56:16 +0100 Subject: [PATCH] pilot: log whether autopilot is active at startup --- pilot.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pilot.go b/pilot.go index 59f05116..923c7865 100644 --- a/pilot.go +++ b/pilot.go @@ -141,9 +141,10 @@ var _ autopilot.ChannelController = (*chanController)(nil) func initAutoPilot(svr *server, cfg *autoPilotConfig, chainCfg *chainConfig) ( *autopilot.ManagerCfg, error) { - atplLog.Infof("Instantiating autopilot with max_channels=%d, allocation=%f, "+ - "min_chan_size=%d, max_chan_size=%d, private=%t, min_confs=%d, "+ - "conf_target=%d", cfg.MaxChannels, cfg.Allocation, cfg.MinChannelSize, + atplLog.Infof("Instantiating autopilot with active=%v, "+ + "max_channels=%d, allocation=%f, min_chan_size=%d, "+ + "max_chan_size=%d, private=%t, min_confs=%d, conf_target=%d", + cfg.Active, cfg.MaxChannels, cfg.Allocation, cfg.MinChannelSize, cfg.MaxChannelSize, cfg.Private, cfg.MinConfs, cfg.ConfTarget) // Set up the constraints the autopilot heuristics must adhere to.