mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 21:13:18 -07:00
refact: the env.change event is now just a debug log
This commit is contained in:
parent
5b46b8d941
commit
4756b885ec
1 changed files with 3 additions and 7 deletions
|
@ -5,6 +5,8 @@ import (
|
|||
"sort"
|
||||
"strconv"
|
||||
"sync"
|
||||
|
||||
"github.com/evilsocket/bettercap-ng/core"
|
||||
)
|
||||
|
||||
type Environment struct {
|
||||
|
@ -41,13 +43,7 @@ func (env *Environment) Set(name, value string) string {
|
|||
old, _ := env.Storage[name]
|
||||
env.Storage[name] = value
|
||||
|
||||
env.sess.Events.Add("env.change", struct {
|
||||
Name string
|
||||
Value string
|
||||
}{
|
||||
name,
|
||||
value,
|
||||
})
|
||||
env.sess.Events.Log(core.DEBUG, "env.change: %s -> '%s'", name, value)
|
||||
|
||||
width := len(name)
|
||||
if width > env.Padding {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue