-
Notifications
You must be signed in to change notification settings - Fork 14
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
Print name of device that is being proxied. #479
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
cmd/jag/commands/proxy_network.go
Outdated
@@ -214,7 +214,7 @@ func runProxyServer(ud *uartDevice, identity *uartIdentity) error { | |||
}) | |||
|
|||
// TODO(florian): this print should be a log. | |||
fmt.Printf("Proxying device through 'http://%s:%d'.\n", localIP, localPort) | |||
fmt.Printf("Proxying device %s through 'http://%s:%d'.\n", identity.Name, localIP, localPort) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should make this look more like the output you get from the device? It looks like app output as is.
https://github.com/toitlang/jaguar/blob/main/src/network.toit#L45
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure.
I would almost like to make the monitor output less like the output from the device.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then you'll have three things you have to distinguish.
PTAL. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Looking forward to trying this out!
No description provided.