From c7bb2e75c0fbb588f832bbcfd5bb4feb49dac8c3 Mon Sep 17 00:00:00 2001 From: Rob Watson Date: Tue, 11 Feb 2025 18:38:50 +0100 Subject: [PATCH] fix: use logfile path from config --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 50a07a2..1e84e85 100644 --- a/main.go +++ b/main.go @@ -37,7 +37,7 @@ func run(ctx context.Context, cfgReader io.Reader) error { state := new(domain.AppState) applyConfig(cfg, state) - logFile, err := os.OpenFile("termstream.log", os.O_RDWR|os.O_CREATE|os.O_APPEND, 0666) + logFile, err := os.OpenFile(cfg.LogFile, os.O_RDWR|os.O_CREATE|os.O_APPEND, 0666) if err != nil { return fmt.Errorf("error opening log file: %w", err) }