Skip to content

sdjournal.JournalReader does not work #455

Open
@lzap

Description

The unit tests do only test for writes, but do not actually read any values from the journal. Therefore, the follower code regressed at some point I guess. It reads nothing, Fedora 41, Go 1.22:

reader, err := sdjournal.NewJournalReader(sdjournal.JournalReaderConfig{})
if err != nil || reader == nil {
	panic(err)
}
defer reader.Close()

if err = reader.Follow(time.After(60*time.Second), os.Stdout); err != sdjournal.ErrExpired {
	panic(err)
}

Nothing is printed.

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