Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't use a global logger in the poet client #4783

Closed
Tracked by #4751
poszu opened this issue Aug 7, 2023 · 0 comments
Closed
Tracked by #4751

Don't use a global logger in the poet client #4783

poszu opened this issue Aug 7, 2023 · 0 comments

Comments

@poszu
Copy link
Contributor

poszu commented Aug 7, 2023

Description

Currently, the poet client uses a global logger.

Affected code

https://github.com/spacemeshos/go-spacemesh/blob/develop/activation/poet.go

Acceptance criteria

  • pass log.Log to HTTPPoetClient,
  • pass the logger to retryablehttp.Client too.
@poszu poszu self-assigned this Aug 7, 2023
bors bot pushed a commit that referenced this issue Sep 8, 2023
## Motivation
Part of  #4751 
Closes #4783

## Changes
- use local logger in poet clients
- provide the logger to `retryablehttp` to gain visibility on performed requests, retries, responses etc.
- cleanup poet test harness

## Test Plan
Existing tests pass
bors bot pushed a commit that referenced this issue Sep 8, 2023
## Motivation
Part of  #4751 
Closes #4783

## Changes
- use local logger in poet clients
- provide the logger to `retryablehttp` to gain visibility on performed requests, retries, responses etc.
- cleanup poet test harness

## Test Plan
Existing tests pass
bors bot pushed a commit that referenced this issue Sep 8, 2023
## Motivation
Part of  #4751 
Closes #4783

## Changes
- use local logger in poet clients
- provide the logger to `retryablehttp` to gain visibility on performed requests, retries, responses etc.
- cleanup poet test harness

## Test Plan
Existing tests pass
@poszu poszu added the area/poet label Sep 8, 2023
@bors bors bot closed this as completed in 900f5b5 Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant