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

Align log messages #10

Merged
merged 1 commit into from
Dec 2, 2018
Merged

Align log messages #10

merged 1 commit into from
Dec 2, 2018

Conversation

andig
Copy link
Contributor

@andig andig commented Dec 2, 2018

Improve log output my aligning output strings visually

Copy link
Contributor

@gq0 gq0 left a comment

Choose a reason for hiding this comment

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

LGTM only one small thing

asciiclient.go Outdated
@@ -178,7 +178,7 @@ func (mb *asciiSerialTransporter) Send(aduRequest []byte) (aduResponse []byte, e
mb.serialPort.startCloseTimer()

// Send the request
mb.serialPort.logf("modbus: sending %q\n", aduRequest)
mb.serialPort.logf("modbus: send %0 x\n", aduRequest)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the 0 padding can be skipped here, or?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ahh, missed one, fixed

Copy link
Contributor

@gq0 gq0 left a comment

Choose a reason for hiding this comment

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

Awesome 🎉

@gq0 gq0 merged commit 0f9b84c into grid-x:master Dec 2, 2018
andig added a commit to andig/gridx-modbus that referenced this pull request Oct 28, 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