Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 29ea7da

Browse files
committed
webui: Don't log.Print*() Execute errors here
The Live node code already logs the error, so lets just remove it from here.
1 parent 97594b4 commit 29ea7da

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

webui/execute.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,6 @@ func execLiveSQL(w http.ResponseWriter, r *http.Request) {
217217
rowsChanged, err := com.LiveExecute(liveNode, loggedInUser, dbOwner, dbName, sql)
218218
if err != nil {
219219
if !strings.HasPrefix(err.Error(), "don't use exec with") {
220-
log.Println(err)
221220
w.WriteHeader(http.StatusInternalServerError)
222221
fmt.Fprint(w, err)
223222
logError(err)
@@ -261,6 +260,4 @@ func execLiveSQL(w http.ResponseWriter, r *http.Request) {
261260
return
262261
}
263262
fmt.Fprintf(w, "%s", jsonData)
264-
265-
return
266263
}

0 commit comments

Comments
 (0)