Skip to content
This repository was archived by the owner on Jun 27, 2025. It is now read-only.

Commit a98ff8c

Browse files
committed
fixed formatting and comments
1 parent 6fd42fb commit a98ff8c

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

command/monitor.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
)
1010

1111
// MonitorCommand is the command implementation that allows users to monitor
12-
// a deploy until it completes
12+
// a job until it completes
1313
type MonitorCommand struct {
1414
args []string
1515
Meta
@@ -29,12 +29,11 @@ Arguments:
2929
General Options:
3030
3131
-timeout=<int>
32-
Number of seconds to allow until we exit with an error.
32+
Number of seconds to allow until we exit with an error.
3333
3434
-log-level=<level>
35-
Specify the verbosity level of Levant's logs. Valid values include DEBUG,
36-
INFO, and WARN, in decreasing order of verbosity. The default is INFO.
37-
35+
Specify the verbosity level of Levant's logs. Valid values include DEBUG,
36+
INFO, and WARN, in decreasing order of verbosity. The default is INFO.
3837
`
3938
return strings.TrimSpace(helpText)
4039
}

levant/monitor.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,7 @@ func (l *levantDeployment) monitorJobInfo(jobName string, jobChan chan<- *nomad.
151151
time.Sleep(time.Second * 5)
152152
continue
153153
}
154-
//logging.Info("lastIndex: %v", meta.LastIndex)
155-
// only take action if the informaiton has changed
154+
// only take action if the information has changed
156155
if meta.LastIndex > q.WaitIndex {
157156
q.WaitIndex = meta.LastIndex
158157
jobChan <- job

0 commit comments

Comments
 (0)