Skip to content

Commit

Permalink
Add debug logs
Browse files Browse the repository at this point in the history
Debug logs added to DeleteEntry() and RegisterEntry() in servicedisc.
  • Loading branch information
ersonp committed Sep 28, 2021
1 parent d44cde6 commit 66257ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/servicedisc/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ func (c *HTTPClient) RegisterEntry(ctx context.Context) error {
return err
}
c.entry = entry
c.log.WithField("entry", c.entry).Debug("Entry registered successfully")
return nil
}

Expand Down Expand Up @@ -263,6 +264,7 @@ func (c *HTTPClient) DeleteEntry(ctx context.Context) (err error) {
}
return &hErr
}
c.log.WithField("entry", c.entry).Debug("Entry deleted successfully")
return nil
}

Expand Down

0 comments on commit 66257ee

Please sign in to comment.