mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 18:57:17 -07:00
fix: session.started and session.closing are now debug only events.
This commit is contained in:
parent
a89da34d3a
commit
5304436736
1 changed files with 6 additions and 2 deletions
|
@ -168,7 +168,9 @@ func (s *Session) setupInput() error {
|
|||
}
|
||||
|
||||
func (s *Session) Close() {
|
||||
s.Events.Add("session.closing", nil)
|
||||
if *s.Options.Debug {
|
||||
s.Events.Add("session.closing", nil)
|
||||
}
|
||||
|
||||
for _, m := range s.Modules {
|
||||
if m.Running() {
|
||||
|
@ -281,7 +283,9 @@ func (s *Session) Start() error {
|
|||
}
|
||||
}()
|
||||
|
||||
s.Events.Add("session.started", nil)
|
||||
if *s.Options.Debug {
|
||||
s.Events.Add("session.started", nil)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue