Skip to content

Commit

Permalink
lightning: Don't log "received task config" in server mode (#52336) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot committed Apr 11, 2024
1 parent fd9583b commit faeb33e
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 69 deletions.
3 changes: 1 addition & 2 deletions br/pkg/lightning/lightning.go
Original file line number Diff line number Diff line change
Expand Up @@ -753,8 +753,7 @@ func (l *Lightning) handlePostTask(w http.ResponseWriter, req *http.Request) {
writeJSONError(w, http.StatusBadRequest, "cannot read request", err)
return
}
filteredData := utils.HideSensitive(string(data))
log.L().Info("received task config", zap.String("content", filteredData))
log.L().Info("received task config")

cfg := config.NewConfig()
if err = cfg.LoadFromGlobal(l.globalCfg); err != nil {
Expand Down
4 changes: 1 addition & 3 deletions br/pkg/utils/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ go_library(
"retry.go",
"safe_point.go",
"schema.go",
"sensitive.go",
"store_manager.go",
"suspend_importing.go",
"worker.go",
Expand Down Expand Up @@ -89,12 +88,11 @@ go_test(
"retry_test.go",
"safe_point_test.go",
"schema_test.go",
"sensitive_test.go",
"suspend_importing_test.go",
],
embed = [":utils"],
flaky = True,
shard_count = 38,
shard_count = 37,
deps = [
"//br/pkg/errors",
"//br/pkg/metautil",
Expand Down
23 changes: 0 additions & 23 deletions br/pkg/utils/sensitive.go

This file was deleted.

41 changes: 0 additions & 41 deletions br/pkg/utils/sensitive_test.go

This file was deleted.

0 comments on commit faeb33e

Please sign in to comment.