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

sdjournal.JournalReader does not work #455

Open
lzap opened this issue Jan 9, 2025 · 0 comments
Open

sdjournal.JournalReader does not work #455

lzap opened this issue Jan 9, 2025 · 0 comments

Comments

@lzap
Copy link

lzap commented Jan 9, 2025

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.

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