Skip to content

Commit 68c9063

Browse files
authored
feat(channels): Log CLI version on startup and dedupe scheduler log (#481)
## Summary - Adds a `Starting channels-manager` log line at the top of `infer channels-manager` that includes `version`, `commit`, and `build_date` (sourced from the existing `cmd.version`/`cmd.commit`/`cmd.date` vars populated via `-ldflags -X`), so operators can see which release is running in pod/container logs. - Removes the duplicate `Scheduler started` log emitted from `cmd/channels.go` — the scheduler service already logs the same event from `internal/services/scheduler/scheduler.go` with richer `dir` + `jobs` fields. Closes #470
1 parent 3a5d7ac commit 68c9063

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

cmd/channels.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ func RunChannelsCommand(cfg *config.Config) error {
5858
return err
5959
}
6060

61+
logger.Info("Starting channels-manager",
62+
"version", version,
63+
"commit", commit,
64+
"build_date", date,
65+
)
6166
logger.Info("Starting channel listener...")
6267

6368
ctx, cancel := context.WithCancel(context.Background())
@@ -126,7 +131,6 @@ func startScheduler(ctx context.Context, cm *services.ChannelManagerService, cfg
126131
if err := svc.Start(ctx); err != nil {
127132
return nil, err
128133
}
129-
logger.Info("Scheduler started", "storage_dir", dir)
130134
return svc, nil
131135
}
132136

0 commit comments

Comments
 (0)