Skip to content

Commit

Permalink
🔊 print err
Browse files Browse the repository at this point in the history
Signed-off-by: Rintaro Okamura <[email protected]>
  • Loading branch information
rinx authored and actions-user committed Aug 3, 2020
1 parent 02f8118 commit 33fbaf7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/agent/sidecar/service/observer/observer.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func (o *observer) PostStop(ctx context.Context) (err error) {
backup := func() error {
metadata, err := metadata.Load(o.metadataPath)
if err != nil {
log.Warn("cannot read metadata of the backup files")
log.Warn("cannot read metadata of the backup files:", err)
return err
}

Expand Down Expand Up @@ -248,7 +248,7 @@ func (o *observer) startTicker(ctx context.Context) (<-chan error, error) {
case <-ct.C:
metadata, err := metadata.Load(o.metadataPath)
if err != nil {
log.Warn("cannot read metadata of the backup files")
log.Warn("cannot read metadata of the backup files:", err)
ech <- err
continue
}
Expand Down Expand Up @@ -326,7 +326,7 @@ func (o *observer) onWrite(ctx context.Context, name string) error {

ok, err := o.isValidMetadata()
if err != nil {
log.Warn("cannot read metadata of the backup files")
log.Warn("cannot read metadata of the backup files:", err)
return err
}

Expand All @@ -351,7 +351,7 @@ func (o *observer) onCreate(ctx context.Context, name string) error {

ok, err := o.isValidMetadata()
if err != nil {
log.Warn("cannot read metadata of the backup files")
log.Warn("cannot read metadata of the backup files:", err)
return err
}

Expand Down

0 comments on commit 33fbaf7

Please sign in to comment.