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

[BUG] Empty log priority crashes journald2graylog #7

Open
cdemers opened this issue May 12, 2017 · 0 comments
Open

[BUG] Empty log priority crashes journald2graylog #7

cdemers opened this issue May 12, 2017 · 0 comments

Comments

@cdemers
Copy link
Owner

cdemers commented May 12, 2017

It seems that some log lines have an empty logEntry.Prioroty, and Atoi doesn't like it. It should be handled properly.

panic: strconv.Atoi: parsing "": invalid syntax

goroutine 1 [running]:
main.prepareGelfPayload(0xc420010aba, 0xc42007b000, 0x44b, 0x1000, 0xc420010c70, 0x10, 0x0, 0x265)
	/Volumes/Users_Data/cdemers1/Go/workspace_delta/src/github.com/cdemers/journald2graylog/journald2graylog.go:117 +0x7c9
main.main()
	/Volumes/Users_Data/cdemers1/Go/workspace_delta/src/github.com/cdemers/journald2graylog/journald2graylog.go:79 +0x47f
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

No branches or pull requests

1 participant