Skip to content

Commit 222ab40

Browse files
committed
remove logs
1 parent 7ca3ec5 commit 222ab40

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

coderd/audit/request.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ func ResourceType[T Auditable](tgt T) database.ResourceType {
134134
// that should be deferred, causing the audit log to be committed when the
135135
// handler returns.
136136
func InitRequest[T Auditable](w http.ResponseWriter, p *RequestParams) (*Request[T], func()) {
137-
fmt.Println("im in the init request")
138137
sw, ok := w.(*tracing.StatusWriter)
139138
if !ok {
140139
panic("dev error: http.ResponseWriter is not *tracing.StatusWriter")
@@ -145,7 +144,6 @@ func InitRequest[T Auditable](w http.ResponseWriter, p *RequestParams) (*Request
145144
}
146145

147146
return req, func() {
148-
fmt.Println("im in the init request callback")
149147

150148
ctx := context.Background()
151149
logCtx := p.Request.Context()
@@ -158,8 +156,6 @@ func InitRequest[T Auditable](w http.ResponseWriter, p *RequestParams) (*Request
158156
// TODO: introduce the concept of an anonymous user so we always have a userID even
159157
// when dealing with a mystery user. https://github.com/coder/coder/issues/6054
160158
if req.params.Action != database.AuditActionLogin && req.params.Action != database.AuditActionLogout {
161-
fmt.Println("im silently bailing")
162-
163159
return
164160
}
165161
}

enterprise/coderd/licenses.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
88
_ "embed"
99
"encoding/base64"
1010
"encoding/json"
11-
"fmt"
1211
"net/http"
1312
"strconv"
1413
"strings"
@@ -61,7 +60,6 @@ var Keys = map[string]ed25519.PublicKey{"2022-08-12": ed25519.PublicKey(key20220
6160
// @Success 201 {object} codersdk.License
6261
// @Router /licenses [post]
6362
func (api *API) postLicense(rw http.ResponseWriter, r *http.Request) {
64-
fmt.Println("im in postLicense")
6563
var (
6664
ctx = r.Context()
6765
auditor = api.AGPL.Auditor.Load()

0 commit comments

Comments
 (0)