Skip to content

Commit

Permalink
cmd/sync: add worker exit log (#4271)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhijian-pro authored Dec 15, 2023
1 parent 28d19c2 commit 7cd85fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,9 @@ func doSync(c *cli.Context) error {
}
config := sync.NewConfigFromCli(c)

if config.Manager != "" {
logger.Debugf("worker process start")
}
// Windows support `\` and `/` as its separator, Unix only use `/`
srcURL := c.Args().Get(0)
dstURL := c.Args().Get(1)
Expand Down
1 change: 1 addition & 0 deletions pkg/sync/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -1144,6 +1144,7 @@ func Sync(src, dst object.ObjectStorage, config *Config) error {
logger.Info(msg)
} else {
sendStats(config.Manager)
logger.Debugf("This worker process has already completed its task")
}
if failed != nil {
if n := failed.Current(); n > 0 {
Expand Down

0 comments on commit 7cd85fc

Please sign in to comment.