Skip to content

Commit

Permalink
opamp logger cleanup, zap sugar works now (#1262)
Browse files Browse the repository at this point in the history
Signed-off-by: Sean Porter <[email protected]>
  • Loading branch information
portertech authored Oct 3, 2023
1 parent 02c72a4 commit 7b955c7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 30 deletions.
29 changes: 0 additions & 29 deletions pkg/extension/opampextension/logger.go

This file was deleted.

2 changes: 1 addition & 1 deletion pkg/extension/opampextension/opamp_agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ type opampAgent struct {

func (o *opampAgent) Start(ctx context.Context, host component.Host) error {
o.host = host
o.opampClient = client.NewWebSocket(&Logger{Logger: o.logger.Sugar()})
o.opampClient = client.NewWebSocket(o.logger.Sugar())

path := filepath.Join(o.cfg.RemoteConfigurationDirectory, "opamp-remote-config.yaml")
if _, err := os.Stat(path); err == nil {
Expand Down

0 comments on commit 7b955c7

Please sign in to comment.