Skip to content

Commit

Permalink
remove persistent logging of http errors
Browse files Browse the repository at this point in the history
  • Loading branch information
llemeurfr committed Sep 2, 2024
1 parent ada7849 commit f56eaae
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions problem/problem.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ import (
"net/http"
"runtime/debug"
"strings"

"github.com/readium/readium-lcp-server/logging"
)

const (
Expand Down Expand Up @@ -69,10 +67,6 @@ func Error(w http.ResponseWriter, r *http.Request, problem Problem, status int)
}
fmt.Fprintln(w, string(jsonError))

// log the error persistently
msg := fmt.Sprintf("Error: %s (%d). %s", problem.Title, problem.Status, problem.Detail)
logging.Print(msg)

// debug only
//PrintStack()
}
Expand Down

0 comments on commit f56eaae

Please sign in to comment.