mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 05:23:19 -07:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
4e7377d2a0
commit
b57e329632
11 changed files with 28 additions and 28 deletions
|
@ -162,7 +162,7 @@ func (s *EventsStream) Start() error {
|
|||
if !s.ignoreList.Ignored(e) {
|
||||
s.View(e, true)
|
||||
} else {
|
||||
log.Debug("Skipping ignored event %v", e)
|
||||
log.Debug("skipping ignored event %v", e)
|
||||
}
|
||||
|
||||
case <-s.quit:
|
||||
|
@ -197,9 +197,9 @@ func (s *EventsStream) Show(limit int) error {
|
|||
|
||||
func (s *EventsStream) startWaitingFor(tag string, timeout int) error {
|
||||
if timeout == 0 {
|
||||
log.Info("Waiting for event %s ...", core.Green(tag))
|
||||
log.Info("waiting for event %s ...", core.Green(tag))
|
||||
} else {
|
||||
log.Info("Waiting for event %s for %d seconds ...", core.Green(tag), timeout)
|
||||
log.Info("waiting for event %s for %d seconds ...", core.Green(tag), timeout)
|
||||
go func() {
|
||||
time.Sleep(time.Duration(timeout) * time.Second)
|
||||
s.waitFor = ""
|
||||
|
@ -213,7 +213,7 @@ func (s *EventsStream) startWaitingFor(tag string, timeout int) error {
|
|||
if event == nil {
|
||||
return fmt.Errorf("'events.waitFor %s %d' timed out.", tag, timeout)
|
||||
} else {
|
||||
log.Debug("Got event: %v", event)
|
||||
log.Debug("got event: %v", event)
|
||||
}
|
||||
|
||||
return nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue