I've checked the code, and the issue is, basically, that `--since` and skipping to the end with `--follow` are in a way “mutually exclusive”, that is, they are handled in a single `if … else if …` statement, so, because `--since` is processed first, we don't skip to head. But since `--follow` sets arg_lines to 10, we still get just 10 lines of output. And then the rest.
-- Кирилл Елагин On Wed, Apr 23, 2014 at 9:53 PM, Kirill Elagin <kirela...@gmail.com> wrote: > Yeah, I see this with systemd 212. > > And let me clarify a little bit: this delay after showing first 10 lines > is not a result of looking up for something; > Following lines appear as soon as there is something new in the log (that > is, actually what `-f` does). > So, here is what I see: > > I type `journalctl --since today -f`. > First 10 lines from today appear. > As soon as something is written to log (e.g. I simulate this by > deliberately failing a `sudo` authentication) > all the remaining lines from today (including the new ones, of course) > appear. > > That's clearly a bug. > > > -- > Кирилл Елагин > > > On Wed, Apr 23, 2014 at 8:05 PM, Mantas Mikulėnas <graw...@gmail.com>wrote: > >> On Wed, Apr 23, 2014 at 6:12 PM, Colin Guthrie <gm...@colin.guthr.ie> >> wrote: >> > What appears to happen instead is that you get the first 10 lines from >> > the day (i.e. after midnight) and then *all* lines from today following >> > that after a small delay (likely not a deliberate delay - just whatever >> > overhead it takes to lookup and output the data) >> >> strace shows that it isn't looking up any data; it's actually waiting >> for inotify events for the --follow mode. Seems odd. >> >> -- >> Mantas Mikulėnas <graw...@gmail.com> >> _______________________________________________ >> systemd-devel mailing list >> systemd-devel@lists.freedesktop.org >> http://lists.freedesktop.org/mailman/listinfo/systemd-devel >> > >
_______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel