Skip to content

Commit 931a213

Browse files
committed
Log warning when settings fail to load for PII redaction
1 parent 17ef4f9 commit 931a213

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

cmd/entire/cli/strategy/common.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,11 @@ var initRedactionOnce sync.Once
248248
func EnsureRedactionConfigured() {
249249
initRedactionOnce.Do(func() {
250250
s, err := settings.Load()
251-
if err != nil || s.Redaction == nil || s.Redaction.PII == nil || !s.Redaction.PII.Enabled {
251+
if err != nil {
252+
fmt.Fprintf(os.Stderr, "[entire] Warning: failed to load settings for PII redaction: %v\n", err)
253+
return
254+
}
255+
if s.Redaction == nil || s.Redaction.PII == nil || !s.Redaction.PII.Enabled {
252256
return
253257
}
254258
pii := s.Redaction.PII

0 commit comments

Comments
 (0)