From 4756b885ec28a83fc2bedc61abb66e42e0ba7509 Mon Sep 17 00:00:00 2001 From: evilsocket Date: Thu, 1 Feb 2018 14:12:26 +0100 Subject: [PATCH] refact: the env.change event is now just a debug log --- session/environment.go | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/session/environment.go b/session/environment.go index 57917314..049591f8 100644 --- a/session/environment.go +++ b/session/environment.go @@ -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 {