Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(274)

Issue 84290045: Extend the tailer utility.

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years ago by thumper
Modified:
10 years ago
Reviewers:
mp+214150, axw
Visibility:
Public.

Description

Extend 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. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -12 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M container/lxc/clonetemplate.go View 1 chunk +1 line, -1 line 0 comments Download
M utils/tailer/tailer.go View 1 4 chunks +25 lines, -9 lines 0 comments Download
M utils/tailer/tailer_test.go View 4 chunks +19 lines, -2 lines 0 comments Download

Messages

Total messages: 5
thumper
Please take a look.
10 years ago (2014-04-04 03:42:04 UTC) #1
axw
On 2014/04/04 03:42:04, thumper wrote: > Please take a look. Looks fine in general. As ...
10 years ago (2014-04-04 04:21:34 UTC) #2
thumper
On 2014/04/04 04:21:34, axw wrote: > On 2014/04/04 03:42:04, thumper wrote: > > Please take ...
10 years ago (2014-04-04 04:30:50 UTC) #3
thumper
Please take a look.
10 years ago (2014-04-04 04:33:10 UTC) #4
axw
10 years ago (2014-04-04 04:34:25 UTC) #5
On 2014/04/04 04:33:10, thumper wrote:
> Please take a look.

LGTM, thanks.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b