Skip to content

Commit ee7c5fa

Browse files
committed
remove log spam
1 parent f92fde9 commit ee7c5fa

File tree

1 file changed

+0
-4
lines changed
  • coderd/workspaceapps

1 file changed

+0
-4
lines changed

coderd/workspaceapps/db.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -395,8 +395,6 @@ func (p *DBTokenProvider) auditInitAutocommitRequest(ctx context.Context, w http
395395
// Set the commit function on the status writer to create an audit
396396
// log, this ensures that the status and response body are available.
397397
sw.AddDoneFunc(func() {
398-
p.Logger.Info(ctx, "workspace app audit session", slog.F("status", sw.Status), slog.F("body", string(sw.ResponseBody())), slog.F("api_key", aReq.apiKey), slog.F("db_req", aReq.dbReq))
399-
400398
if sw.Status == http.StatusSeeOther {
401399
// Redirects aren't interesting as we will capture the audit
402400
// log after the redirect.
@@ -480,8 +478,6 @@ func (p *DBTokenProvider) auditInitAutocommitRequest(ctx context.Context, w http
480478
p.Logger.Error(ctx, "update workspace app audit session failed", slog.Error(err))
481479
}
482480

483-
p.Logger.Info(ctx, "workspace app audit session", slog.F("session_id", sessionID), slog.F("status", sw.Status), slog.F("body", string(sw.ResponseBody())))
484-
485481
if sessionID == uuid.Nil {
486482
if sw.Status < 400 {
487483
// Session was updated and no error occurred, no need to

0 commit comments

Comments
 (0)