Skip to content

Align log messages#10

Merged
gq0 merged 1 commit into
grid-x:masterfrom
andig:recv
Dec 2, 2018
Merged

Align log messages#10
gq0 merged 1 commit into
grid-x:masterfrom
andig:recv

Conversation

@andig

@andig andig commented Dec 2, 2018

Copy link
Copy Markdown
Contributor

Improve log output my aligning output strings visually

@gq0 gq0 left a comment

Copy link
Copy Markdown
Contributor

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

Comment thread asciiclient.go Outdated

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

Copy link
Copy Markdown
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
Copy Markdown
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

@gq0 gq0 left a comment

Copy link
Copy Markdown
Contributor

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