MCPcopy
hub / github.com/chenhg5/cc-connect / maskURL

Method maskURL

platform/feishu/feishu.go:43–53  ·  view source on GitHub ↗
(args ...interface{})

Source from the content-addressed store, hash-verified

41}
42
43func (l *sanitizingLogger) maskURL(args ...interface{}) []interface{} {
44 masked := make([]interface{}, len(args))
45 for i, arg := range args {
46 if s, ok := arg.(string); ok {
47 masked[i] = l.sanitize(s)
48 } else {
49 masked[i] = arg
50 }
51 }
52 return masked
53}
54
55func (l *sanitizingLogger) sanitize(s string) string {
56 // Mask sensitive query parameters in URLs

Callers 4

DebugMethod · 0.95
InfoMethod · 0.95
WarnMethod · 0.95
ErrorMethod · 0.95

Calls 1

sanitizeMethod · 0.95

Tested by

no test coverage detected