Skip to content

Commit

Permalink
change phrasing for watch enable/disable message
Browse files Browse the repository at this point in the history
Signed-off-by: Joana Hrotko <joana.hrotko@docker.com>
  • Loading branch information
jhrotko committed Mar 22, 2024
1 parent 5f7529d commit 17e7c42
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/compose/watch.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ func (s *composeService) Watch(ctx context.Context, project *types.Project, serv
if !watching {
return fmt.Errorf("none of the selected services is configured for watch, consider setting an 'develop' section")
}
options.LogTo.Log(api.WatchLogger, "Watch started")
options.LogTo.Log(api.WatchLogger, "Watch enabled")

return eg.Wait()
}
Expand Down Expand Up @@ -220,10 +220,10 @@ func (s *composeService) watch(ctx context.Context, project *types.Project, name
for {
select {
case <-quit:
options.LogTo.Log(api.WatchLogger, "Watch stopped")
options.LogTo.Log(api.WatchLogger, "Watch disabled")
return nil
case err := <-watcher.Errors():
options.LogTo.Err(api.WatchLogger, "Watch stopped with errors")
options.LogTo.Err(api.WatchLogger, "Watch disabled with errors")

Check warning on line 226 in pkg/compose/watch.go

View check run for this annotation

Codecov / codecov/patch

pkg/compose/watch.go#L226

Added line #L226 was not covered by tests
return err
case event := <-watcher.Events():
hostPath := event.Path()
Expand Down

0 comments on commit 17e7c42

Please sign in to comment.