Skip to content

Commit

Permalink
## [2.0.5] - 2024-03-04
Browse files Browse the repository at this point in the history
### Changed
- Changed custom logger. Censure API Key.
  • Loading branch information
fmunozmiranda committed Mar 4, 2024
1 parent 3f0fe4c commit 2eb086a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [2.0.5] - 2024-03-04
### Changed
- Changed custom logger. Censure API Key.

## [2.0.4] - 2024-03-04
### Added
- Added custom logger. Censure API Key.
Expand Down
2 changes: 1 addition & 1 deletion sdk/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func (l *CustomLogger) Debugf(format string, v ...interface{}) {
// Censurar el encabezado de autorización
// re := regexp.MustCompile(`Authorization: .*`)
// censoredMessage := re.ReplaceAllString(message, "Authorization: [censored]")
re := regexp.MustCompile(`Authorization: Bearer [a-zA-Z0-9]+([a-zA-Z0-9]{5})`)
re := regexp.MustCompile(`Authorization: Bearer.*([a-zA-Z0-9]{5})`)
censoredMessage := re.ReplaceAllString(message, "Authorization: Bearer ****$1")

// Imprimir la salida de depuración censurada
Expand Down

0 comments on commit 2eb086a

Please sign in to comment.