From df5f46bb21d31fc623be5f2b87f438d5f5aa88fc Mon Sep 17 00:00:00 2001 From: Emile Date: Sun, 23 Feb 2020 16:37:37 +0100 Subject: logrus --- src/init.go | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/init.go b/src/init.go index 679e01b..b512ecb 100644 --- a/src/init.go +++ b/src/init.go @@ -2,16 +2,28 @@ package main import ( "fmt" - "log" "math/rand" + "strings" "time" r2pipe "github.com/radare/r2pipe-go" + "github.com/sirupsen/logrus" ) +func buildBots(config *Config) { + + logrus.Info("Building all bots") + + // build all the bots + for i := 0; i < config.AmountOfBots; i++ { + buildBot(i, config) + } +} + // buildBot builds the bot located at the given path. -func buildBot(config Config, path string) Bot { - log.Println("[+] Building the bot") +func buildBot(i int, config *Config) { + + logrus.Debugf("Building bot %d", i) // open radare without input for building the bot r2p1, err := r2pipe.NewPipe("--") -- cgit 1.4.1