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

Changing format (logrus, logrus-color) does not work #33

Open
scraly opened this issue Dec 17, 2024 · 0 comments
Open

Changing format (logrus, logrus-color) does not work #33

scraly opened this issue Dec 17, 2024 · 0 comments

Comments

@scraly
Copy link

scraly commented Dec 17, 2024

Defining a logrus or a logrus-color format display an error message:

$ ldp-tail --address "wss://gra1.logs.ovh.com/tail/?tk=xxdxfxfxxxyfxy" --format logrus
2024/12/17 22:21:25 Connecting to gra1.logs.ovh.com...
2024/12/17 22:21:25 Connected!
panic: interface conversion: interface {} is nil, not float64

goroutine 1 [running]:
main.logrusFormater(0x14000090120, 0x0)
	/Users/aurelievache/go/pkg/mod/github.com/ovh/[email protected]/format.go:61 +0x634
main.logrusFormaterWithoutColor(0x140000b0900?)
	/Users/aurelievache/go/pkg/mod/github.com/ovh/[email protected]/format.go:57 +0x20
main.main()
	/Users/aurelievache/go/pkg/mod/github.com/ovh/[email protected]/main.go:109 +0xb88
$ ldp-tail --address "wss://gra1.logs.ovh.com/tail/?tk=xxdxfxfxxxyfxy" --format logrus-color
2024/12/17 22:21:35 Connecting to gra1.logs.ovh.com...
2024/12/17 22:21:35 Connected!
panic: interface conversion: interface {} is nil, not float64

goroutine 1 [running]:
main.logrusFormater(0x1400013c780, 0x1)
	/Users/aurelievache/go/pkg/mod/github.com/ovh/[email protected]/format.go:61 +0x634
main.logrusFormaterWithColor(0x1400012bc00?)
	/Users/aurelievache/go/pkg/mod/github.com/ovh/[email protected]/format.go:53 +0x20
main.main()
	/Users/aurelievache/go/pkg/mod/github.com/ovh/[email protected]/main.go:109 +0xb88
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