Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Logs show block numbers in weird format #7521

Closed
staking4all opened this issue Nov 11, 2020 · 7 comments · Fixed by #7525
Closed

Logs show block numbers in weird format #7521

staking4all opened this issue Nov 11, 2020 · 7 comments · Fixed by #7525
Labels
J2-unconfirmed Issue might be valid, but it’s not yet known.

Comments

@staking4all
Copy link

Hi

In v24 and prior the logs would show the block numbers

image

however from 25, 26 the logs seem to have a weird annotation for the block numbers. Is this correct and a new format? Or is it a bug? The block number is now hidden inside a bunch of new additional blurb
image

According to telemetry the nodes is all fine and in sync.
image

This impacts the monitoring on my nodes as I get info from the logs to do active alerts.

Thanks

@github-actions github-actions bot added the J2-unconfirmed Issue might be valid, but it’s not yet known. label Nov 11, 2020
@bkchr
Copy link
Member

bkchr commented Nov 11, 2020

This looks like the log lines are mixed. How do you run the node? Did you tried to just run it on the terminal?

@staking4all
Copy link
Author

I'm running it as a service as it is a validator node. So I read this in /var/log/syslog

I just tested it now on the terminal. It does not do this in the terminal.

It has a consistent pattern and if using a regex syntax you can pull out the number consistently. For some reason when writing to the log it has this extra text. If i revert back to version 24 it works fine. This is only visible from 25 and 26 which indicates something has changed from 25 that causes this.

Hope this helps

@bkchr
Copy link
Member

bkchr commented Nov 12, 2020

I suspect this commit: 46faa92

By running it as service you mean you run it as systemd service?

@tomaka
Copy link
Contributor

tomaka commented Nov 12, 2020

I think the "blurbs" are just ANSI color codes.
We shouldn't be trying to print colors when not printing to the terminal.

@staking4all
Copy link
Author

By running it as service you mean you run it as systemd service?

yes, run as systemd service

@bkchr
Copy link
Member

bkchr commented Nov 12, 2020

Will be fixed by this: #7525

@staking4all
Copy link
Author

noice

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
J2-unconfirmed Issue might be valid, but it’s not yet known.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants