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

logs: wire deps [ch8434] #3635

Merged
merged 2 commits into from
Jul 30, 2020
Merged

logs: wire deps [ch8434] #3635

merged 2 commits into from
Jul 30, 2020

Conversation

maiamcc
Copy link
Contributor

@maiamcc maiamcc commented Jul 29, 2020

Hello @nicks, @jazzdan,

Please review the following commits I made in branch maiamcc/logs-wire-deps:

ac4c504 (2020-07-29 15:10:08 -0400)
logs: wire deps [ch8434]

Code review reminders, by giving a LGTM you attest that:

  • Commits are adequately tested
  • Code is easy to understand and conforms to style guides
  • Incomplete code is marked with TODOs
  • Code is suitably instrumented with logging and metrics

@maiamcc maiamcc requested review from jazzdan and nicks July 29, 2020 19:10
@@ -94,17 +90,22 @@ func (ls *LogStreamer) Handle(v proto_webview.View) error {

return nil
}
func StreamLogs(ctx context.Context, host model.WebHost, port model.WebPort, printer *hud.IncrementalPrinter) error {
Copy link
Member

Choose a reason for hiding this comment

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

model.WebURL might be a better choice here. it will behave correctly if the user specifies 0.0.0.0 (there's a subtle difference between the host we're listening on and the host we're connecting to)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ugh it SHOULD be model.WebURL except that encodes the schema too :( i might play with it and split it out into model.BaseWebURL and model.WebURL

Copy link
Contributor Author

@maiamcc maiamcc Jul 30, 2020

Choose a reason for hiding this comment

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

oh wait duh I can just manipulate the url.URL to change the schema.

return err
}

return server.StreamLogs(ctx, logDeps.host, logDeps.port, logDeps.printer)
Copy link
Member

Choose a reason for hiding this comment

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

add the addConnectServerFlags() call to this file while you're here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've got that in a different ticket!

@maiamcc maiamcc merged commit 902c524 into master Jul 30, 2020
@maiamcc maiamcc deleted the maiamcc/logs-wire-deps branch July 30, 2020 21:57
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.

None yet

3 participants