about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2020-02-23 16:36:28 +0100
committerEmile <hanemile@protonmail.com>2020-02-23 16:36:28 +0100
commit907194495157817b365d739b08ea3e9a365c2367 (patch)
treef6c0168659b73a8a882b76a300ed77be9aaa6a08
parentfcd11ef4de88b9e7c529736d53912a3fe7480035 (diff)
logrus
-rw-r--r--src/cmd.go8
1 files 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)