From 89bb2099e9dd240916ddb3c9d77c0b9f85067cc0 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Tue, 24 Apr 2018 21:29:41 +0200 Subject: [PATCH] [client] removed debug --- src/git.xdrm.io/schastsp/client/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/git.xdrm.io/schastsp/client/client.go b/src/git.xdrm.io/schastsp/client/client.go index 86d16bd..36ed5cc 100644 --- a/src/git.xdrm.io/schastsp/client/client.go +++ b/src/git.xdrm.io/schastsp/client/client.go @@ -96,7 +96,7 @@ func (c *T) Receive(r io.Reader) error { if err != nil { return err } if uint16(read) != 1 { return errors.New("Cannot read error code") } - fmt.Printf("ERROR CODE : %d\n", errCode[0]); + if DEBUG { fmt.Printf("ERROR CODE : %d\n", errCode[0]) } /* (2) Manage success ---------------------------------------------------------*/