Skip to content
This repository
Browse code

remove debugging from handler

  • Loading branch information...
commit 193f93b2ee7e2d9128939cbd0fa0f4d5018f457c 1 parent d4ae571
authored March 01, 2011

Showing 1 changed file with 0 additions and 7 deletions. Show diff stats Hide diff stats

  1. 7  handler.go
7  handler.go
@@ -8,7 +8,6 @@ package mysql
8 8
 import (
9 9
 	"os"
10 10
 	"strconv"
11  
-	"fmt"
12 11
 )
13 12
 
14 13
 // OK packet handler
@@ -112,9 +111,6 @@ func handleField(p *packetField, c *Client, r *Result) (err os.Error) {
112 111
 
113 112
 // Row packet hander
114 113
 func handleRow(p *packetRowData, c *Client, r *Result) (err os.Error) {
115  
-	defer func() {
116  
-		fmt.Printf("Error: %#v\n", err)
117  
-	}()
118 114
 	// Log field result
119 115
 	c.log(1, "[%d] Received row packet", p.sequence)
120 116
 	// Check sequence
@@ -163,16 +159,13 @@ func handleRow(p *packetRowData, c *Client, r *Result) (err os.Error) {
163 159
 		// Add to row
164 160
 		row = append(row, field)
165 161
 	}
166  
-	fmt.Printf("%#v\n", row)
167 162
 	// Stored result
168 163
 	if r.mode == RESULT_STORED {
169  
-		fmt.Println("Appending")
170 164
 		// Cast and append the row
171 165
 		r.rows = append(r.rows, Row(row))
172 166
 	}
173 167
 	// Used result
174 168
 	if r.mode == RESULT_USED {
175  
-		fmt.Println("Overwriting")
176 169
 		// Only save 1 row, overwrite previous
177 170
 		r.rows = []Row{Row(row)}
178 171
 	}

0 notes on commit 193f93b

Please sign in to comment.
Something went wrong with that request. Please try again.