Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
drewbailey committed Jun 12, 2020
1 parent ff9e190 commit 6684789
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions client/logmon/logmon.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,17 +110,9 @@ type TaskLogger struct {

// IsRunning will return true as long as one rotator wrapper is still running
func (tl *TaskLogger) IsRunning() bool {
var lroRunning bool
var lreRunning bool
lroRunning := tl.lro != nil && tl.lro.isRunning()
lreRunning := tl.lre != nil && tl.lre.isRunning()

if tl.lro != nil && tl.lro.isRunning() {
lroRunning = true
}
if tl.lre != nil && tl.lre.isRunning() {
lreRunning = true
}

// If either lro or lre has stopped report false
return lroRunning && lreRunning
}

Expand Down Expand Up @@ -181,7 +173,6 @@ func NewTaskLogger(cfg *LogConfig, logger hclog.Logger) (*TaskLogger, error) {
// log rotator data. The processOutWriter should be attached to the process and
// data will be copied from the reader to the rotator.
type logRotatorWrapper struct {
copying bool
fifoPath string
rotatorWriter io.WriteCloser
hasFinishedCopied chan struct{}
Expand Down

0 comments on commit 6684789

Please sign in to comment.