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

Fix forward subcommand bugs #43

Merged
merged 4 commits into from
Jul 22, 2024
Merged

Fix forward subcommand bugs #43

merged 4 commits into from
Jul 22, 2024

Conversation

kropptrevor
Copy link
Contributor

  • No longer starts server for the forward subcommand
  • Forward no longer prints an error on EOF
  • Logging statements can now be tested

Copy link
Contributor

@PeterOsinski PeterOsinski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey @kropptrevor thanks for the contribution. I left just one question but overall things look good 👍🏻

return messages
}

func loggingValue(t *testing.T, logEntry string, field string) string {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kropptrevor what is the reason you added these helper functions if you're just providing a msg string?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The idea is that this code can be reused to test other logging fields. This is also why the stub is exported.

@PeterOsinski PeterOsinski merged commit 3a8df92 into logdyhq:main Jul 22, 2024
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