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

Print name of device that is being proxied. #479

Merged
merged 2 commits into from
Jan 23, 2024
Merged

Conversation

floitsch
Copy link
Member

No description provided.

@floitsch floitsch requested a review from kasperl January 19, 2024 11:48
Copy link
Member

@kasperl kasperl left a 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.

@@ -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)
Copy link
Member

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

Copy link
Member Author

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.

Copy link
Member

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.

@floitsch
Copy link
Member Author

PTAL.

@floitsch floitsch requested a review from kasperl January 23, 2024 06:15
Copy link
Member

@kasperl kasperl left a 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!

@floitsch floitsch merged commit f2c06b4 into main Jan 23, 2024
7 checks passed
@floitsch floitsch deleted the floitsch/print-name-proxy branch January 23, 2024 06:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants