From 600966ac26d1d6ed34b8fd6b29e9a1ec17178440 Mon Sep 17 00:00:00 2001 From: Filip Solich Date: Fri, 4 Aug 2023 20:36:05 +0200 Subject: [PATCH] fix: add missing `\n` to watcher log Closes #1285 Closes #1297 --- CHANGELOG.md | 5 +++++ watch.go | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f38d5ed0..fd96a360 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## Unreleased + +- Fix a missing a line break on log when using `--watch` mode (#1285, #1297 by + @FilipSolich). + ## v3.28.0 - 2023-07-24 - Added the ability to diff --git a/watch.go b/watch.go index 6ec7dce0..e390d16c 100644 --- a/watch.go +++ b/watch.go @@ -27,7 +27,7 @@ func (e *Executor) watchTasks(calls ...taskfile.Call) error { tasks[i] = c.Task } - e.Logger.Errf(logger.Green, "task: Started watching for tasks: %s", strings.Join(tasks, ", ")) + e.Logger.Errf(logger.Green, "task: Started watching for tasks: %s\n", strings.Join(tasks, ", ")) ctx, cancel := context.WithCancel(context.Background()) for _, c := range calls {