Skip to content

Commit 193f93b

Browse files
author
Phil Bayfield
committed
remove debugging from handler
1 parent d4ae571 commit 193f93b

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

handler.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ package mysql
88
import (
99
"os"
1010
"strconv"
11-
"fmt"
1211
)
1312

1413
// OK packet handler
@@ -112,9 +111,6 @@ func handleField(p *packetField, c *Client, r *Result) (err os.Error) {
112111

113112
// Row packet hander
114113
func handleRow(p *packetRowData, c *Client, r *Result) (err os.Error) {
115-
defer func() {
116-
fmt.Printf("Error: %#v\n", err)
117-
}()
118114
// Log field result
119115
c.log(1, "[%d] Received row packet", p.sequence)
120116
// Check sequence
@@ -163,16 +159,13 @@ func handleRow(p *packetRowData, c *Client, r *Result) (err os.Error) {
163159
// Add to row
164160
row = append(row, field)
165161
}
166-
fmt.Printf("%#v\n", row)
167162
// Stored result
168163
if r.mode == RESULT_STORED {
169-
fmt.Println("Appending")
170164
// Cast and append the row
171165
r.rows = append(r.rows, Row(row))
172166
}
173167
// Used result
174168
if r.mode == RESULT_USED {
175-
fmt.Println("Overwriting")
176169
// Only save 1 row, overwrite previous
177170
r.rows = []Row{Row(row)}
178171
}

0 commit comments

Comments
 (0)