Skip to content

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

Open
@scraly

Description

@scraly

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions