Re: [systemd-devel] journalctl --since today --follow weirdness

2014-05-23 Thread Colin Guthrie
'Twas brillig, and Colin Guthrie at 23/04/14 16:12 did gyre and gimble: Hiya, A colleague pointed out an oddity in journalctl --since today --follow output. It seems the two arguments somewhat contradict each other: one asks for all the output for today and the other asks for all future

[systemd-devel] journalctl --since today --follow weirdness

2014-04-23 Thread Colin Guthrie
Hiya, A colleague pointed out an oddity in journalctl --since today --follow output. It seems the two arguments somewhat contradict each other: one asks for all the output for today and the other asks for all future messages, but using them together should obviously behave in a somewhat sensible

Re: [systemd-devel] journalctl --since today --follow weirdness

2014-04-23 Thread Mantas Mikulėnas
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

Re: [systemd-devel] journalctl --since today --follow weirdness

2014-04-23 Thread Kirill Elagin
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

Re: [systemd-devel] journalctl --since today --follow weirdness

2014-04-23 Thread Lennart Poettering
On Wed, 23.04.14 16:12, Colin Guthrie (gm...@colin.guthr.ie) wrote: Hiya, A colleague pointed out an oddity in journalctl --since today --follow output. It seems the two arguments somewhat contradict each other: one asks for all the output for today and the other asks for all future

Re: [systemd-devel] journalctl --since today --follow weirdness

2014-04-23 Thread Kirill Elagin
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

Re: [systemd-devel] journalctl --since today --follow weirdness

2014-04-23 Thread Kirill Elagin
On Wed, Apr 23, 2014 at 10:16 PM, Lennart Poettering lenn...@poettering.net wrote: What actually happens is that the output will show you everything from today, and when it is done with that continue with a live output. Not exactly. You don't get _everything_ form to day, you get just