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

Pass explicit logger to relayer package functions #660

Merged
merged 1 commit into from
Apr 4, 2022

Conversation

mark-rushakoff
Copy link
Member

Instead of relying on the logger associated with a chain, accept a
logger specifically for use in the package-level function.

By convention, ctx is always the first parameter, and then log.

Passing the logger separately also allows more flexibility in the
parameter types to these functions, which will simplify adding new tests
shortly.

@mark-rushakoff mark-rushakoff marked this pull request as draft April 1, 2022 19:45
@mark-rushakoff mark-rushakoff force-pushed the refactor/relay-package-logging branch from 0e447e1 to 7813657 Compare April 2, 2022 00:24
Instead of relying on the logger associated with a chain, accept a
logger specifically for use in the package-level function.

By convention, ctx is always the first parameter, and then log.

Passing the logger separately also allows more flexibility in the
parameter types to these functions, which will simplify adding new tests
shortly.
@mark-rushakoff mark-rushakoff force-pushed the refactor/relay-package-logging branch from 7813657 to cc1630e Compare April 2, 2022 00:47
@mark-rushakoff mark-rushakoff marked this pull request as ready for review April 2, 2022 02:06
@jtieri jtieri merged commit 4f0d1b5 into main Apr 4, 2022
@jtieri jtieri deleted the refactor/relay-package-logging branch April 4, 2022 04:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants