From 907194495157817b365d739b08ea3e9a365c2367 Mon Sep 17 00:00:00 2001 From: Emile Date: Sun, 23 Feb 2020 16:36:28 +0100 Subject: logrus --- src/cmd.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/cmd.go b/src/cmd.go index 9e75478..a17da4a 100644 --- a/src/cmd.go +++ b/src/cmd.go @@ -1,17 +1,13 @@ package main import ( - "log" - "github.com/radare/r2pipe-go" + "github.com/sirupsen/logrus" ) func r2cmd(r2p *r2pipe.Pipe, input string) string { - if *verbose == true { - // print the command for debugging purposes - log.Printf("> %s", input) - } + logrus.Tracef("> %s", input) // send a command buf1, err := r2p.Cmd(input) -- cgit 1.4.1