Skip to content

Commit

Permalink
Log that we are waiting for updates in watch mode
Browse files Browse the repository at this point in the history
  • Loading branch information
rexim committed Dec 21, 2023
1 parent 50f5995 commit 7b44c6d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions markut.go
Original file line number Diff line number Diff line change
Expand Up @@ -898,6 +898,7 @@ func watchSubcommand(args []string) bool {
return false
}

fmt.Printf("INFO: Waiting for updates to %s\n", *markutPtr)
for {
// NOTE: always use rsync(1) for updating the MARKUT file remotely.
// This kind of crappy modification checking needs at least some sort of atomicity.
Expand All @@ -921,6 +922,7 @@ func watchSubcommand(args []string) bool {
fmt.Printf("ERROR: Could not cut the chunk %s: %s\n", chunk.Name(), err)
return false
}
fmt.Printf("INFO: Waiting for more updates to %s\n", *markutPtr)
done = false
break
}
Expand Down

0 comments on commit 7b44c6d

Please sign in to comment.