DescriptionExtend the tailer utility.
When looking at the pyjuju debug-log, there was a replay
function that allowed getting the log from the start.
There was no way to tell the tailer to start from the
beginning of the file.
I changed the meaning of NewTailer to be one that doesn't
do any seeking. The NewTailerBacktrack does seek to the end,
and then goes back a certain number of lines.
There was a bug in the backtrack tailer when zero lines
were passed in. This is fixed and a test added.
In order to provide a synchronization mechanism for other
tests, the Tailer has a public function param that is called
after the backtracking, and prior to starting tailing.
The number of lines to look back is now a unit, as negative
values make no sense at all.
https://code.launchpad.net/~thumper/juju-core/tailer-tweaks/+merge/214150
(do not edit description out of merge proposal)
Patch Set 1 #Patch Set 2 : Extend the tailer utility. #
MessagesTotal messages: 5
|