Skip to content

Commit

Permalink
Config: fix log messages refering to the registry
Browse files Browse the repository at this point in the history
  • Loading branch information
EduardGomezEscandell committed Oct 27, 2023
1 parent 01a5e7a commit 91bc677
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions windows-agent/internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func (c *Config) SetSubscription(ctx context.Context, proToken string, source So
c.subscription.Set(source, proToken)

if err := c.dump(); err != nil {
log.Errorf(ctx, "Could not update subscription in registry, token will be ignored: %v", err)
log.Errorf(ctx, "Could not update subscription, token will be ignored: %v", err)
c.subscription.Set(source, old)
return err
}
Expand Down Expand Up @@ -202,7 +202,7 @@ func (c *Config) SetLandscapeAgentUID(ctx context.Context, uid string) error {
c.landscape.UID = uid

if err := c.dump(); err != nil {
log.Errorf(ctx, "Could not update landscape agent UID in registry, UID will be ignored: %v", err)
log.Errorf(ctx, "Could not update landscape settings, UID will be ignored: %v", err)
c.landscape.UID = old
return err
}
Expand Down

0 comments on commit 91bc677

Please sign in to comment.